summaryrefslogtreecommitdiff
path: root/fs/btrfs/raid56.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2022-04-01 14:23:26 +0300
committerDavid Sterba <dsterba@suse.com>2022-05-16 18:03:15 +0300
commit6346f6bf16a0fd76f5f50077c469fa8e88724996 (patch)
tree3759482324c21ac7e6a832fdb4cb7c54fe55c0c7 /fs/btrfs/raid56.h
parentf77183dc1f53b2f924e9ba3bd1602b585097ec3d (diff)
downloadlinux-6346f6bf16a0fd76f5f50077c469fa8e88724996.tar.xz
btrfs: raid56: make raid56_add_scrub_pages() subpage compatible
This requires one extra parameter @pgoff for the function. In the current code base, scrub is still one page per sector, thus the new parameter will always be 0. It needs the extra subpage scrub optimization code to fully take advantage. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/raid56.h')
-rw-r--r--fs/btrfs/raid56.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/raid56.h b/fs/btrfs/raid56.h
index 006b4741e5c1..aaad08aefd7d 100644
--- a/fs/btrfs/raid56.h
+++ b/fs/btrfs/raid56.h
@@ -35,7 +35,7 @@ int raid56_parity_recover(struct bio *bio, struct btrfs_io_context *bioc,
int raid56_parity_write(struct bio *bio, struct btrfs_io_context *bioc, u32 stripe_len);
void raid56_add_scrub_pages(struct btrfs_raid_bio *rbio, struct page *page,
- u64 logical);
+ unsigned int pgoff, u64 logical);
struct btrfs_raid_bio *raid56_parity_alloc_scrub_rbio(struct bio *bio,
struct btrfs_io_context *bioc, u32 stripe_len,