From: Nick Piggin Subject: Re: [patch] fs: remove prepare_write/commit_write Date: Wed, 22 Oct 2008 11:24:41 +0200 Message-ID: <20081022092441.GB4359@wotan.suse.de> References: <20080924234116.GC30307@wotan.suse.de> <20081017173445.GA10293@infradead.org> <1224269128.15582.9.camel@badari-desktop> <20081021062020.GA17785@wotan.suse.de> <20081021143518.cc48a382.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: torvalds@linux-foundation.org, hch@infradead.org, linux-fsdevel@vger.kernel.org, pbadari@us.ibm.com To: Andrew Morton Return-path: Received: from mx2.suse.de ([195.135.220.15]:36630 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751318AbYJVJYn (ORCPT ); Wed, 22 Oct 2008 05:24:43 -0400 Content-Disposition: inline In-Reply-To: <20081021143518.cc48a382.akpm@linux-foundation.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Oct 21, 2008 at 02:35:18PM -0700, Andrew Morton wrote: > On Tue, 21 Oct 2008 08:20:20 +0200 > Nick Piggin wrote: > > > Nothing uses prepare_write or commit_write. Remove them from the tree > > completely. > > We could withdraw simple_prepare_write() too, I guess. But there's > some risk that out-of-tree filesystems might be using it within their > write_begin() implementations. That's true. A number of the helper functions are still write_begin implemented by calling into prepare_write... Of course, after this patch, the bare prepare_write functions won't be any use to external modules anymore. At least the code still gets exercised and no hacks, though. With the perform_write_2copy stuff, it almost becomes crazy for us to support given that very few in-kernel users (and now one) ever test it. Anyway... this has taken long enough that I don't much care exactly how it gets merged. Whatever you think best.