btrfs: extent-tree: Open-code process_func in __btrfs_mod_ref
authorQu Wenruo <wqu@suse.com>
Thu, 4 Apr 2019 06:45:30 +0000 (14:45 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 29 Apr 2019 17:02:48 +0000 (19:02 +0200)
commitdd28b6a5aad306c417477db700ed0848c923a31c
treec29b5c0537f6412730e71d16cae673605f6a4294
parentb28b1f0ce44c1b9ebc1c43e3eba18c1f1f5d9cec
btrfs: extent-tree: Open-code process_func in __btrfs_mod_ref

The process_func function pointer is local to __btrfs_mod_ref() and
points to either btrfs_inc_extent_ref() or btrfs_free_extent().

Open code it to make later delayed ref refactor easier, so we can
refactor btrfs_inc_extent_ref() and btrfs_free_extent() in different
patches.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
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