From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [Lhms-devel] [RFC] buddy allocator without bitmap [2/4] From: Dave Hansen In-Reply-To: <412DD1AA.8080408@jp.fujitsu.com> References: <412DD1AA.8080408@jp.fujitsu.com> Content-Type: text/plain Message-Id: <1093535402.2984.11.camel@nighthawk> Mime-Version: 1.0 Date: Thu, 26 Aug 2004 08:50:02 -0700 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Hiroyuki KAMEZAWA Cc: Linux Kernel ML , linux-mm , lhms , William Lee Irwin III List-ID: On Thu, 2004-08-26 at 05:03, Hiroyuki KAMEZAWA wrote: > - MARK_USED(index + size, high, area); > + page[size].flags |= (1 << PG_private); > + page[size].private = high; > } > return page; > } ... > + /* Atomic operation is needless here */ > + page->flags &= ~(1 << PG_private); See linux/page_flags.h: #define SetPagePrivate(page) set_bit(PG_private, &(page)->flags) #define ClearPagePrivate(page) clear_bit(PG_private, &(page)->flags) #define PagePrivate(page) test_bit(PG_private, &(page)->flags) -- Dave -- 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: aart@kvack.org