diff options
| author | Qu Wenruo <[email protected]> | 2019-05-14 23:33:48 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2019-07-01 11:34:53 +0000 |
| commit | 78192442d383fb47ff5fa066f23c1d1bd382e526 (patch) | |
| tree | 20f4b43bb8815d1a4fde6d84e8d8edc44ee5452a /fs/btrfs/dev-replace.c | |
| parent | Linux 5.2-rc7 (diff) | |
| download | kernel-78192442d383fb47ff5fa066f23c1d1bd382e526.tar.gz kernel-78192442d383fb47ff5fa066f23c1d1bd382e526.zip | |
btrfs: extent-tree: Refactor add_pinned_bytes() to add|sub_pinned_bytes()
Instead of using @sign to determine whether we're adding or subtracting.
Even it only has 3 callers, it's still (and in fact already caused
problem in the past) confusing to use.
Refactor add_pinned_bytes() to add_pinned_bytes() and sub_pinned_bytes()
to explicitly show what we're doing.
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
