Re: [PATCH 4/8] btrfs: cleanup the target logic in __btrfs_block_rsv_release

2019-06-25 Thread David Sterba
On Thu, Jun 20, 2019 at 11:23:36AM +0300, Nikolay Borisov wrote: > > > On 19.06.19 г. 20:47 ч., Josef Bacik wrote: > > This works for all callers already, but if we wanted to use the helper > > for the global_block_rsv it would end up trying to refill itself. Fix > > the logic to be able to be u

Re: [PATCH 4/8] btrfs: cleanup the target logic in __btrfs_block_rsv_release

2019-06-20 Thread Nikolay Borisov
On 19.06.19 г. 20:47 ч., Josef Bacik wrote: > This works for all callers already, but if we wanted to use the helper > for the global_block_rsv it would end up trying to refill itself. Fix > the logic to be able to be used no matter which block rsv is passed in > to this helper. > > Signed-off

[PATCH 4/8] btrfs: cleanup the target logic in __btrfs_block_rsv_release

2019-06-19 Thread Josef Bacik
This works for all callers already, but if we wanted to use the helper for the global_block_rsv it would end up trying to refill itself. Fix the logic to be able to be used no matter which block rsv is passed in to this helper. Signed-off-by: Josef Bacik --- fs/btrfs/extent-tree.c | 14