From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 24 Oct 2007 14:08:36 -0700 From: Andrew Morton Subject: Re: [PATCH] fix tmpfs BUG and AOP_WRITEPAGE_ACTIVATE Message-Id: <20071024140836.a0098180.akpm@linux-foundation.org> In-Reply-To: References: <200710142232.l9EMW8kK029572@agora.fsl.cs.sunysb.edu> <84144f020710150447o94b1babo8b6e6a647828465f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Hugh Dickins Cc: penberg@cs.helsinki.fi, ezk@cs.sunysb.edu, ryan@finnie.org, mhalcrow@us.ibm.com, cjwatson@ubuntu.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, stable@kernel.org List-ID: On Wed, 24 Oct 2007 22:02:15 +0100 (BST) Hugh Dickins wrote: > --- 2.6.24-rc1/mm/shmem.c 2007-10-24 07:16:04.000000000 +0100 > +++ linux/mm/shmem.c 2007-10-24 20:24:31.000000000 +0100 > @@ -915,6 +915,11 @@ static int shmem_writepage(struct page * > struct inode *inode; > > BUG_ON(!PageLocked(page)); > + if (!wbc->for_reclaim) { > + set_page_dirty(page); > + unlock_page(page); > + return 0; > + } > BUG_ON(page_mapped(page)); Needs a comment, methinks. -- 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/ . Don't email: email@kvack.org