Skip to content
Commit 261d812b authored by Qu Wenruo's avatar Qu Wenruo Committed by David Sterba
Browse files

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: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
[hch: split from a larger patch, and iterate over the offset instead of
      the offset bits]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ add parameter comments ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent a89ce08c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment