mm: page_alloc less atomics (resend)
Subsystems (3)
PATCH 1/1 mm: page_alloc less atomics (resend)
Oops, forgot to cc linux-mm
--
More atomic operation removal from page allocator
Signed-off-by Nick Piggin <[email protected]>
include/linux/page-flags.h +2 -2
@@ -331,8 +331,8 @@ extern void __mod_page_state_offset(unsi#define TestClearPageReclaim (page) test_and_clear_bit(PG_reclaim, &(page)->flags)#define PageCompound (page) test_bit(PG_compound, &(page)->flags) -#define SetPageCompound (page) set_bit(PG_compound, &(page)->flags) -#define ClearPageCompound (page) clear_bit(PG_compound, &(page)->flags) +#define __SetPageCompound (page) __set_bit(PG_compound, &(page)->flags) +#define __ClearPageCompound (page) __clear_bit(PG_compound, &(page)->flags)#ifdef CONFIG_SWAP #define PageSwapCache (page) test_bit(PG_swapcache, &(page)->flags)
mm/page_alloc.c +2 -2
@@ -189,7 +189,7 @@ static void prep_compound_page(struct pafor (i =0 ; i < nr_pages; i++) {struct page *p = page + i; -SetPageCompound (p); +__SetPageCompound (p);set_page_private (p, (unsigned long )page); } }
@@ -208,7 +208,7 @@ static void destroy_compound_page(structif (unlikely (!PageCompound (p) | (page_private (p) != (unsigned long )page)))bad_page (page); -ClearPageCompound (p); +__ClearPageCompound (p); } }
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>