diff options
author | 2021-12-15 14:59:41 +0800 | |
---|---|---|
committer | 2022-01-07 14:18:26 +0100 | |
commit | d04fbe19aefd28570a442e79aae226dd742ddc4c (patch) | |
tree | ff6ad3e517d2bc7ca3e4d3a41f575f2d7b8c6428 /scripts/gdb/linux/utils.py | |
parent | btrfs: remove reada infrastructure (diff) | |
download | wireguard-linux-d04fbe19aefd28570a442e79aae226dd742ddc4c.tar.xz wireguard-linux-d04fbe19aefd28570a442e79aae226dd742ddc4c.zip |
btrfs: scrub: cleanup the argument list of scrub_chunk()
The argument list of scrub_chunk() has the following problems:
- Duplicated @chunk_offset
It is the same as btrfs_block_group::start.
- Confusing @length
The most instinctive guess is chunk length, and one may want to delete
it, but the truth is, it's the device extent length.
Fix this by:
- Remove @chunk_offset
Use btrfs_block_group::start instead.
- Rename @length to @dev_extent_len
Also rename the caller to remove the ambiguous naming.
- Rename @cache to @bg
The "_cache" suffix for btrfs_block_group has been removed for a while.
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