From: Theodore Ts'o Subject: Re: [PATCH] ext4: fix interaction between i_size, fallocate, and delalloc after a crash Date: Sat, 7 Oct 2017 14:32:13 -0400 Message-ID: <20171007183213.jfezqvcbjslzwm7e@thunk.org> References: <1503830683-21455-1-git-send-email-amir73il@gmail.com> <59C8D147.1060608@cn.fujitsu.com> <59D5DEE0.6080506@cn.fujitsu.com> <20171007032917.bntgnubthdstmrrt@thunk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ashlie Martinez , Xiao Yang , Eryu Guan , Josef Bacik , fstests , Ext4 , Vijay Chidambaram To: Amir Goldstein Return-path: Content-Disposition: inline In-Reply-To: Sender: fstests-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On Sat, Oct 07, 2017 at 08:54:06AM +0300, Amir Goldstein wrote: > > If fallocate(2) is called with the FALLOC_FL_KEEP_SIZE flag, either > > According to patch without keep size flag? Oops, thanks for catching that. I'll fix the commit description. > BTW looking at the patch, does truncate racing with fallocate that > would increase size beyond truncated size works correctly? Yes, because we the inode is locked via i_mutex (well, now an write lock on i_rwsem) during both truncate and fallocate operations. - Ted