Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S267979AbUJOPTr (ORCPT ); Fri, 15 Oct 2004 11:19:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267953AbUJOPTr (ORCPT ); Fri, 15 Oct 2004 11:19:47 -0400 Received: from mx1.redhat.com ([66.187.233.31]:44427 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S267979AbUJOPOw (ORCPT ); Fri, 15 Oct 2004 11:14:52 -0400 From: David Howells In-Reply-To: <20041014194421.GU16153@parcelfarce.linux.theplanet.co.uk> References: <20041014194421.GU16153@parcelfarce.linux.theplanet.co.uk> <24461.1097780707@redhat.com> To: Matthew Wilcox Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Subject: Re: [RESEND][PATCH 5/6] Provide a filesystem-specific sync'able page bit User-Agent: EMH/1.14.1 SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3 (i386-redhat-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Date: Fri, 15 Oct 2004 16:14:46 +0100 Message-ID: <28682.1097853286@redhat.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1291 Lines: 33 > > +#define PG_fs_misc 9 /* Filesystem specific bit */ > ... > That's not really enough documentation. Who sets this flag? Who clears this > flag? That's up to the owning filesystem (or device file, I suppose); hence "filesystem-specific". I could expand this a little, but there isn't much to say - it's entirely up to the filesystem, though I think I should probably require it to be cleared before the page is freed. > Currently, mm/page_alloc.c clears this flag: Not really; that's irrelevant. It checks to see if it is set when it allocates a page, and if it is it complains bitterly. It then splats this bit and all others to make sure struct page has all its flags in the ground state. > If you're going to not kill this flag, at least rename it so we don't > have two defines for the same bit. I did have it as a different number, but I was told to make it the same as PG_checked. I could rename all instances of PG_checked, I suppose... > which really ought to at least mention Documentation/cachetlb.txt Fix it then. David - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/