lkml.org 
[lkml]   [2009]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 7/8] page-types: introduce kpageflags_flags()
CC: Andi Kleen <andi@firstfloor.org> 
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
---
Documentation/vm/page-types.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
--- linux-mm.orig/Documentation/vm/page-types.c 2009-09-16 17:54:06.000000000 +0800
+++ linux-mm/Documentation/vm/page-types.c 2009-09-16 17:54:35.000000000 +0800
@@ -436,6 +436,16 @@ static uint64_t well_known_flags(uint64_
return flags;
}

+static uint64_t kpageflags_flags(uint64_t flags)
+{
+ flags = expand_overloaded_flags(flags);
+
+ if (!opt_raw)
+ flags = well_known_flags(flags);
+
+ return flags;
+}
+
/*
* page frame walker
*/
@@ -470,10 +480,7 @@ static int hash_slot(uint64_t flags)
static void add_page(unsigned long voffset,
unsigned long offset, uint64_t flags)
{
- flags = expand_overloaded_flags(flags);
-
- if (!opt_raw)
- flags = well_known_flags(flags);
+ flags = kpageflags_flags(flags);

if (!bit_mask_ok(flags))
return;
--



\
 
 \ /
  Last update: 2009-09-16 12:35    [from the cache]
©2003-2011 Jasper Spaans