]> www.infradead.org Git - users/hch/configfs.git/commit
btrfs: factor out stripe length calculation into a helper
authorQu Wenruo <wqu@suse.com>
Fri, 8 Mar 2024 03:10:30 +0000 (13:40 +1030)
committerDavid Sterba <dsterba@suse.com>
Thu, 1 Aug 2024 15:15:05 +0000 (17:15 +0200)
commit33eb1e5db351e2c0e652d878b66b8a6d4d013135
tree3ede032027c8bb9bd449d284902cca321196cf60
parentb8e947e9f64cac9df85a07672b658df5b2bcff07
btrfs: factor out stripe length calculation into a helper

Currently there are two locations which need to calculate the real
length of a stripe (which can be at the end of a chunk, and the chunk
size may not always be 64K aligned).

Factor them into a helper as we're going to have a third user soon.

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