diff options
author | Josef Bacik <josef@toxicpanda.com> | 2019-08-22 22:10:58 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-09-09 15:59:18 +0300 |
commit | 18fa2284aac3f1071f51a897dc5585178cae458f (patch) | |
tree | 939897f2b525b22db6189834a96613c978a64075 /fs/exportfs/expfs.c | |
parent | 91182645075f9a41953bea703a7d10e9f661cd13 (diff) | |
download | linux-18fa2284aac3f1071f51a897dc5585178cae458f.tar.xz |
btrfs: refactor the ticket wakeup code
Now that btrfs_space_info_add_old_bytes simply checks if we can make the
reservation and updates bytes_may_use, there's no reason to have both
helpers in place.
Factor out the ticket wakeup logic into it's own helper, make
btrfs_space_info_add_old_bytes() update bytes_may_use and then call the
wakeup helper, and replace all calls to btrfs_space_info_add_new_bytes()
with the wakeup helper.
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/exportfs/expfs.c')
0 files changed, 0 insertions, 0 deletions