Re: [PATCH 6/6] btrfs: fix truncate throttling

2018-11-26 Thread Nikolay Borisov
On 21.11.18 г. 20:59 ч., Josef Bacik wrote: > We have a bunch of magic to make sure we're throttling delayed refs when > truncating a file. Now that we have a delayed refs rsv and a mechanism > for refilling that reserve simply use that instead of all of this magic. > > Signed-off-by: Josef

[PATCH 6/6] btrfs: fix truncate throttling

2018-11-21 Thread Josef Bacik
We have a bunch of magic to make sure we're throttling delayed refs when truncating a file. Now that we have a delayed refs rsv and a mechanism for refilling that reserve simply use that instead of all of this magic. Signed-off-by: Josef Bacik --- fs/btrfs/inode.c | 79