diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-10-07 16:32:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-08 07:36:39 -0700 |
commit | 48640d69f5f06fe951a4de065a7f374cb9ee6040 (patch) | |
tree | b8cdfc19a1b93d36436928ccd358a043e5f292aa | |
parent | e577ebde9fb161bdc87511763c75dfad291059e2 (diff) | |
download | kernel_samsung_espresso10-48640d69f5f06fe951a4de065a7f374cb9ee6040.zip kernel_samsung_espresso10-48640d69f5f06fe951a4de065a7f374cb9ee6040.tar.gz kernel_samsung_espresso10-48640d69f5f06fe951a4de065a7f374cb9ee6040.tar.bz2 |
page-types: introduce kpageflags_flags()
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | Documentation/vm/page-types.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Documentation/vm/page-types.c b/Documentation/vm/page-types.c index 56f33b6..11b9a03 100644 --- a/Documentation/vm/page-types.c +++ b/Documentation/vm/page-types.c @@ -436,6 +436,16 @@ static uint64_t well_known_flags(uint64_t flags) 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; |