From: Ted Ts'o Subject: Re: [5/7] ext4: Wait for writeback to complete while making pages writable Date: Wed, 18 May 2011 14:17:11 -0400 Message-ID: <20110518181711.GB13693@thunk.org> References: <20110509230356.19566.48351.stgit@elm3c44.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jan Kara , Alexander Viro , OGAWA Hirofumi , Jens Axboe , "Martin K. Petersen" , Jeff Layton , Dave Chinner , linux-kernel , Dave Hansen , Christoph Hellwig , linux-mm@kvack.org, Chris Mason , Joel Becker , linux-scsi , linux-fsdevel , linux-ext4@vger.kernel.org, Mingming Cao To: "Darrick J. Wong" Return-path: Content-Disposition: inline In-Reply-To: <20110509230356.19566.48351.stgit@elm3c44.beaverton.ibm.com> Sender: owner-linux-mm@kvack.org List-Id: linux-ext4.vger.kernel.org On Mon, May 09, 2011 at 01:03:56PM -0000, Darrick J. Wong wrote: > In order to stabilize pages during disk writes, ext4_page_mkwrite must wait for > writeback operations to complete before making a page writable. Furthermore, > the function must return locked pages, and recheck the writeback status if the > page lock is ever dropped. The "someone could wander in" part of this patch > was suggested by Chris Mason. > > Signed-off-by: Darrick J. Wong > > --- > fs/ext4/inode.c | 24 +++++++++++++++++++----- > 1 files changed, 19 insertions(+), 5 deletions(-) Added to the ext4 tree, thanks. - Ted -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org