]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: extent-tree: Refactor add_pinned_bytes() to add|sub_pinned_bytes()
authorQu Wenruo <wqu@suse.com>
Tue, 14 May 2019 23:33:48 +0000 (07:33 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:53 +0000 (13:34 +0200)
commit293a7c00d45b849392568722d4ab71cda29105e9
tree20f4b43bb8815d1a4fde6d84e8d8edc44ee5452a
parentb3a254280c80355616128668891234ee929c0a5b
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 <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c