From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [patch 8/8] fs: add i_op->sync_inode Date: Fri, 7 Jan 2011 13:32:02 -0500 Message-ID: <20110107183202.GA13586@infradead.org> References: <20110104062725.GD3402@amd> <20110104065736.GA8013@infradead.org> <20110104080323.GC4090@amd> <20110104092501.GB2760@infradead.org> <20110104094922.GA4812@amd> <20110106204510.GA2872@infradead.org> <20110107044734.GA4552@amd> <20110107072430.GA32308@infradead.org> <20110107072934.GA2849@infradead.org> <20110107183047.GB21922@thunk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Ted Ts'o , Christoph Hellwig , Nick Piggin , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton Content-Disposition: inline In-Reply-To: <20110107183047.GB21922@thunk.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Fri, Jan 07, 2011 at 01:30:47PM -0500, Ted Ts'o wrote: > > the write_inode in XFS is already trying to do it, it's just the > > caller not copying with it: > > > > - if we can't get locks for a non-blocking ->write_inode we return > > EAGAIN, and the callers sets the dirty bits again. > > I like that solution; it might be one of the easier ways to maintain > backwards compatibility. Especially since (correct me if I am wrong) > the simpler file systems which always write out the inode in the case > of a non-blocking write_inode, say, like say the fat file system, are > immune from this specific problem, right? Yes. Also one of the patches in Nick's series actually implements this already. Looks like we lost that fact when arguing about other things..