lkml.org 
[lkml]   [2012]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 2/2] mm: Fixup abandoned PG_buddy for private in struct page
From
PG_buddy, an abandoned flag, indicates page(s) is/are free
and in buddy allocator. And when page(s) in buddy allocator,
the _mapcount will equal PAGE_BUDDY_MAPCOUNT_VALUE. So,
here, "_mapcount equals PAGE_BUDDY_MAPCOUNT_VALUE" instead
of "PG_buddy is set".

Signed-off-by: Haifeng Li <omycle@gmail.com>
---
include/linux/mm_types.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 704a626..49d9247 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -126,7 +126,8 @@ struct page {
* if PagePrivate set; used for
* swp_entry_t if PageSwapCache;
* indicates order in the buddy
- * system if PG_buddy is set.
+ * system if _mapcount equals
+ * PAGE_BUDDY_MAPCOUNT_VALUE.
*/
#if USE_SPLIT_PTLOCKS
spinlock_t ptl;
--
1.7.5.4

\
 
 \ /
  Last update: 2012-09-06 12:23    [W:0.045 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site