diff options
author | Andrew Morton <akpm@osdl.org> | 2006-04-18 22:20:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-04-19 09:13:50 -0700 |
commit | 6aa3001b239b387d98a7f945e4a51edeb59e4f2d (patch) | |
tree | df3901329baddd8c37a661ad595fa52821dee8ef /mm | |
parent | 013159227b840dfd441bd2e4c8b4d77ffb3cc42e (diff) | |
download | linux-6aa3001b239b387d98a7f945e4a51edeb59e4f2d.tar.gz linux-6aa3001b239b387d98a7f945e4a51edeb59e4f2d.tar.bz2 linux-6aa3001b239b387d98a7f945e4a51edeb59e4f2d.zip |
[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')
-rw-r--r-- | mm/page_alloc.c | 10 |
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) * zone->lock is already acquired when we use these. * So, we don't need atomic page->flags operations here. */ -static inline unsigned long page_order(struct page *page) { +static inline unsigned long page_order(struct page *page) +{ return page_private(page); } -static inline void set_page_order(struct page *page, int order) { +static inline void set_page_order(struct page *page, int order) +{ set_page_private(page, order); __SetPageBuddy(page); } @@ -299,9 +301,9 @@ static inline int page_is_buddy(struct page *page, int order) if (PageBuddy(page) && page_order(page) == order) { BUG_ON(page_count(page) != 0); - return 1; + return 1; } - return 0; + return 0; } /* |