summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tests
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2021-12-15 07:59:42 +0100
committerDavid Sterba <dsterba@suse.com>2022-01-07 14:18:27 +0100
commit2ae8ae3d3def4c3ba73a58cc2531c42f0916f14e (patch)
tree70a1cd8f85377292c0d685925671818f60693244 /fs/btrfs/tests
parentbtrfs: scrub: cleanup the argument list of scrub_chunk() (diff)
downloadlinux-2ae8ae3d3def4c3ba73a58cc2531c42f0916f14e.tar.xz
linux-2ae8ae3d3def4c3ba73a58cc2531c42f0916f14e.zip
btrfs: scrub: cleanup the argument list of scrub_stripe()
The argument list of btrfs_stripe() has similar problems of scrub_chunk(): - Duplicated and ambiguous @base argument Can be fetched from btrfs_block_group::bg. - Ambiguous argument @length It's again device extent length - Ambiguous argument @num The instinctive guess would be mirror number, but in fact it's stripe index. Fix it by: - Remove @base parameter - Rename @length to @dev_extent_len - Rename @num to @stripe_index 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/tests')
0 files changed, 0 insertions, 0 deletions