diff options
author | 2021-12-15 14:59:42 +0800 | |
---|---|---|
committer | 2022-01-07 14:18:27 +0100 | |
commit | 2ae8ae3d3def4c3ba73a58cc2531c42f0916f14e (patch) | |
tree | 70a1cd8f85377292c0d685925671818f60693244 /scripts/gdb/linux/utils.py | |
parent | btrfs: scrub: cleanup the argument list of scrub_chunk() (diff) | |
download | wireguard-linux-2ae8ae3d3def4c3ba73a58cc2531c42f0916f14e.tar.xz wireguard-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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions