]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: add a helper to iterate through a btrfs_bio with sector sized chunks
authorQu Wenruo <wqu@suse.com>
Sun, 22 May 2022 11:47:53 +0000 (13:47 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Jul 2022 15:44:34 +0000 (17:44 +0200)
commitd5b17145dd77d944b28d293e06a28c7119dbf665
treeac670cee80330b1b4c91bc89283df88015912442
parent7800460387d4382c5cfa666c0fcff24d728d2023
btrfs: add a helper to iterate through a btrfs_bio with sector sized chunks

Add a helper that works similar to __bio_for_each_segment, but instead of
iterating over PAGE_SIZE chunks it iterates over each sector.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
[hch: split from a larger patch, and iterate over the offset instead of
      the offset bits]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add parameter comments ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.h