]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: rename btrfs_ordered_extent::list to csum_list
authorQu Wenruo <wqu@suse.com>
Tue, 10 Feb 2026 03:24:29 +0000 (13:54 +1030)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:56 +0000 (18:55 +0200)
commit09664971b33718680c20f94aaf5d18fc8d7b0a3c
treee3f638351d3fbd977d3fee1327b297e48ff80f24
parent74e505fc89e2e6383b4f10f23318dfc3b62f70dc
btrfs: rename btrfs_ordered_extent::list to csum_list

That list head records all pending checksums for that ordered
extent. And unlike other lists, we just use the name "list", which can
be very confusing for readers.

Rename it to "csum_list" which follows the remaining lists, showing the
purpose of the list.

And since we're here, remove a comment inside
btrfs_finish_ordered_zoned() where we have
"ASSERT(!list_empty(&ordered->csum_list))" to make sure the OE has
pending csums.

That comment is only here to make sure we do not call list_first_entry()
before checking BTRFS_ORDERED_PREALLOC.
But since we already have that bit checked and even have a dedicated
ASSERT(), there is no need for that comment anymore.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/tree-log.c
fs/btrfs/zoned.c