diff options
| author | Qu Wenruo <[email protected]> | 2022-04-01 11:23:21 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-05-16 15:03:15 +0000 |
| commit | 3e77605d6a81efd39278a5ca2ee57737eb2659d2 (patch) | |
| tree | 6d7d27ac81e1422ac9741ad0cf88538b26082e31 /fs/btrfs/async-thread.c | |
| parent | btrfs: raid56: introduce btrfs_raid_bio::bio_sectors (diff) | |
| download | kernel-3e77605d6a81efd39278a5ca2ee57737eb2659d2.tar.gz kernel-3e77605d6a81efd39278a5ca2ee57737eb2659d2.zip | |
btrfs: raid56: make rbio_add_io_page() subpage compatible
Make rbio_add_io_page() subpage compatible, which involves:
- Rename rbio_add_io_page() to rbio_add_io_sector()
Although we still rely on PAGE_SIZE == sectorsize, so add a new
ASSERT() inside rbio_add_io_sector() to make sure all pgoff is 0.
- Introduce rbio_stripe_sector() helper
The equivalent of rbio_stripe_page().
This new helper has extra ASSERT()s to validate the stripe and sector
number.
- Introduce sector_in_rbio() helper
The equivalent of page_in_rbio().
- Rename @pagenr variables to @sectornr
- Use rbio::stripe_nsectors when iterating the bitmap
Please note that, this only changes the interface, the bios are still
using full page for IO.
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
