From: Wu Fengguang Date: Wed, 7 Oct 2009 23:32:31 +0000 (-0700) Subject: page-types: introduce kpageflags_flags() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=48640d69f5f06fe951a4de065a7f374cb9ee6040;p=openwrt%2Fstaging%2Fblogic.git page-types: introduce kpageflags_flags() Signed-off-by: Wu Fengguang Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/Documentation/vm/page-types.c b/Documentation/vm/page-types.c index 56f33b63d160..11b9a03f7b10 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;