diff options
| author | Qu Wenruo <[email protected]> | 2021-05-31 16:50:38 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2021-06-21 15:19:09 +0200 |
| commit | ed8f13bf4a2ccb6c90d3210421455c2ceae678de (patch) | |
| tree | 423d536444c5eda63e1092d0432737182b932ae3 /scripts/gdb/linux/proc.py | |
| parent | 98af9ab12b49a5ae338b523e64b5a7dd637781d4 (diff) | |
btrfs: refactor page status update into process_one_page()
In __process_pages_contig() we update page status according to page_ops.
That update process is a bunch of 'if' branches, which lie inside
two loops, this makes it pretty hard to expand for later subpage
operations.
So this patch will extract these operations into its own function,
process_one_pages().
Also since we're refactoring __process_pages_contig(), also move the new
helper and __process_pages_contig() before the first caller of them, to
remove the forward declaration.
Tested-by: Ritesh Harjani <[email protected]> # [ppc64]
Tested-by: Anand Jain <[email protected]> # [aarch64]
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions