]> git.hungrycats.org Git - linux/commit
btrfs: introduce rbio_nr_data_sectors() helper
authorQu Wenruo <wqu@suse.com>
Thu, 22 Oct 2026 09:39:27 +0000 (20:09 +1030)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Oct 2026 20:36:19 +0000 (21:36 +0100)
commitf20e61e293ce469e7351f16700dc776b8f810a78
tree86543d27bcd53ee647e7367814e667575c8ee3b0
parent45be3e5878a47fee8175e2701563f3465e0fddf6
btrfs: introduce rbio_nr_data_sectors() helper

The pattern "rbio->nr_data * rbio->stripe_nsectors" is utilized more
than 5 times inside raid56.c, it's worthy to extract it into a new
helper.

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