aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-04-19 01:20:52 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-19 12:13:50 -0400
commit6aa3001b239b387d98a7f945e4a51edeb59e4f2d (patch)
treedf3901329baddd8c37a661ad595fa52821dee8ef /mm/page_alloc.c
parent013159227b840dfd441bd2e4c8b4d77ffb3cc42e (diff)
[PATCH] page_alloc.c: buddy handling cleanup
Fix up some whitespace damage. 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.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 97d6827c7d66..123c60586740 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -232,11 +232,13 @@ static inline void prep_zero_page(struct page *page, int order, gfp_t gfp_flags)
232 * zone->lock is already acquired when we use these. 232 * zone->lock is already acquired when we use these.
233 * So, we don't need atomic page->flags operations here. 233 * So, we don't need atomic page->flags operations here.
234 */ 234 */
235static inline unsigned long page_order(struct page *page) { 235static inline unsigned long page_order(struct page *page)
236{
236 return page_private(page); 237 return page_private(page);
237} 238}
238 239
239static inline void set_page_order(struct page *page, int order) { 240static inline void set_page_order(struct page *page, int order)
241{
240 set_page_private(page, order); 242 set_page_private(page, order);
241 __SetPageBuddy(page); 243 __SetPageBuddy(page);
242} 244}
@@ -299,9 +301,9 @@ static inline int page_is_buddy(struct page *page, int order)
299 301
300 if (PageBuddy(page) && page_order(page) == order) { 302 if (PageBuddy(page) && page_order(page) == order) {
301 BUG_ON(page_count(page) != 0); 303 BUG_ON(page_count(page) != 0);
302 return 1; 304 return 1;
303 } 305 }
304 return 0; 306 return 0;
305} 307}
306 308
307/* 309/*