Re: [PATCH v3] generic: check whether we can truncate heavily reflinked file

2016-09-22 Thread Wang Xiaoguang
Hi, On 09/23/2016 12:58 PM, Eryu Guan wrote: On Fri, Sep 23, 2016 at 11:12:07AM +0800, Wang Xiaoguang wrote: In btrfs, there is a bug about btrfs' truncate codes, it'll leak some fs space as the truncate operation proceeds. If this truncate operation is very large, later metadata request in thi

Re: [PATCH v3] generic: check whether we can truncate heavily reflinked file

2016-09-22 Thread Eryu Guan
On Fri, Sep 23, 2016 at 11:12:07AM +0800, Wang Xiaoguang wrote: > In btrfs, there is a bug about btrfs' truncate codes, it'll leak > some fs space as the truncate operation proceeds. If this truncate > operation is very large, later metadata request in this truncate > operation may fail for enospc