Re: [PATCH 5/8] btrfs: refactor the ticket wakeup code

2019-08-19 Thread Nikolay Borisov
On 16.08.19 г. 17:19 ч., Josef Bacik wrote: > 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

[PATCH 5/8] btrfs: refactor the ticket wakeup code

2019-08-16 Thread Josef Bacik
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 wak