Messages in this thread | | | Subject | Re: [Lhms-devel] [RFC] buddy allocator without bitmap [2/4] | From | Dave Hansen <> | Date | Thu, 26 Aug 2004 08:50:02 -0700 |
| |
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 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/
| |