aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2022-04-01 11:23:20 +0000
committerDavid Sterba <[email protected]>2022-05-16 15:03:14 +0000
commit00425dd976d310484e8ad8b4e7c8720a606d4d78 (patch)
treee0c69a4a88129f09a64bfcf719a05cd924b952b9 /fs/btrfs/async-thread.c
parentbtrfs: raid56: introduce btrfs_raid_bio::stripe_sectors (diff)
downloadkernel-00425dd976d310484e8ad8b4e7c8720a606d4d78.tar.gz
kernel-00425dd976d310484e8ad8b4e7c8720a606d4d78.zip
btrfs: raid56: introduce btrfs_raid_bio::bio_sectors
This new member is going to fully replace bio_pages in the future, but for now let's keep them co-exist, until the full switch is done. Currently cache_rbio_pages() and index_rbio_pages() will also populate the new array. And cache_rbio_pages() need to record which sectors are uptodate, so we also need to introduce sector_ptr::uptodate bit. To avoid extra memory usage, we let the new @uptodate bit to share bits with @pgoff. Now pgoff only has at most 31 bits, which is already more than enough, as even for 256K page size, we only need 18 bits. Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions