diff options
| author | Filipe Manana <fdmanana@suse.com> | 2025-05-01 12:54:03 +0100 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-05-15 14:30:54 +0200 |
| commit | c5d12d5b621258eb07f4106dc9196affed1c22d0 (patch) | |
| tree | 972aed4b78f94c89d801379d5d3058f67345bb64 /scripts/const_structs.checkpatch | |
| parent | btrfs: simplify cow only root list extraction during transaction commit (diff) | |
| download | linux-c5d12d5b621258eb07f4106dc9196affed1c22d0.tar.gz linux-c5d12d5b621258eb07f4106dc9196affed1c22d0.zip | |
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>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
