Re: [PATCH 2/2] Btrfs: fix space leak after fallocate and zero range operations

2018-01-18 Thread David Sterba
On Thu, Jan 18, 2018 at 01:45:20PM +0200, Nikolay Borisov wrote: > > [95795.015577] R10: 06b4 R11: 0246 R12: > > 7fa6791bae64 > > [95795.016569] R13: R14: 563386706210 R15: > > 7ffccf0ab160 > > [95795.017662] Code: 00 00 00 4c 8b a3 98 25 00

Re: [PATCH 2/2] Btrfs: fix space leak after fallocate and zero range operations

2018-01-18 Thread Nikolay Borisov
On 18.01.2018 13:34, fdman...@kernel.org wrote: > From: Filipe Manana > > If we do a buffered write after a zero range operation that has an > unaligned (with the filesystem's sector size) end which also falls within > an unwritten (prealloc) extent that is currently beyond the inode's > i_size

[PATCH 2/2] Btrfs: fix space leak after fallocate and zero range operations

2018-01-18 Thread fdmanana
From: Filipe Manana If we do a buffered write after a zero range operation that has an unaligned (with the filesystem's sector size) end which also falls within an unwritten (prealloc) extent that is currently beyond the inode's i_size, and the zero range operation has the flag FALLOC_FL_KEEP_SIZ