]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: raid56: use list_last_entry() at cache_rbio()
authorFilipe Manana <fdmanana@suse.com>
Thu, 1 May 2025 11:54:03 +0000 (12:54 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:54 +0000 (14:30 +0200)
commitc5d12d5b621258eb07f4106dc9196affed1c22d0
tree972aed4b78f94c89d801379d5d3058f67345bb64
parentd26d16a43272d714c06bf33509b84797863fcf9c
btrfs: raid56: use list_last_entry() at cache_rbio()

Instead of using list_entry() against the list's prev entry, use
list_last_entry(), which removes the need to know the last member is
accessed through the prev list pointer and the naming makes it easier
to reason about what we are doing.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c