Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 6 Mar 2002 12:35:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 6 Mar 2002 12:35:03 -0500 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:59399 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id ; Wed, 6 Mar 2002 12:34:52 -0500 Message-ID: <3C8652CE.47182A24@zip.com.au> Date: Wed, 06 Mar 2002 09:33:02 -0800 From: Andrew Morton X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.19-pre2 i686) X-Accept-Language: en MIME-Version: 1.0 To: Bulent Abali CC: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] struct page shrinkage In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Bulent Abali wrote: > > >Rik van Riel wrote: > >> > >> + clear_bit(PG_locked, &p->flags); > > > >Please don't do this. Please use the macros. If they're not > >there, please create them. > > > >Bypassing the abstractions in this manner confounds people > >who are implementing global locked-page accounting. > > > > Andrew, > I have an application which needs to know the total number of locked and > dirtied pages at any given time. In which application locked-page > accounting is done? I don't see it in base 2.5.5. Are there any patches > or such that you can give pointers to? This is in the ebulliently growing delayed-allocate and buffer_head-bypass patches at http://www.zip.com.au/~akpm/linux/patches/2.5/2.5.6-pre2/ The implementation you're looking for is in dalloc-10-core.patch: mm.h and mm/page_alloc.c - - 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/