aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorNick Piggin <npiggin@suse.de>2006-03-22 03:08:01 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-22 10:53:57 -0500
commit5e9dace8d386def04219134d7160e8a778824764 (patch)
treed74ca57577cc4872eb6bcf609e3c7f7d1a39fdf6 /mm/page_alloc.c
parent674539115cc88473f623581e1d53c0e2ecef2179 (diff)
[PATCH] mm: page_alloc less atomics
More atomic operation removal from page allocator Signed-off-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 61775866ea18..102919851353 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -190,7 +190,7 @@ static void prep_compound_page(struct page *page, unsigned long order)
190 for (i = 0; i < nr_pages; i++) { 190 for (i = 0; i < nr_pages; i++) {
191 struct page *p = page + i; 191 struct page *p = page + i;
192 192
193 SetPageCompound(p); 193 __SetPageCompound(p);
194 set_page_private(p, (unsigned long)page); 194 set_page_private(p, (unsigned long)page);
195 } 195 }
196} 196}
@@ -209,7 +209,7 @@ static void destroy_compound_page(struct page *page, unsigned long order)
209 if (unlikely(!PageCompound(p) | 209 if (unlikely(!PageCompound(p) |
210 (page_private(p) != (unsigned long)page))) 210 (page_private(p) != (unsigned long)page)))
211 bad_page(page); 211 bad_page(page);
212 ClearPageCompound(p); 212 __ClearPageCompound(p);
213 } 213 }
214} 214}
215 215