diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2012-12-12 16:52:36 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-12 20:38:35 -0500 |
commit | 816422ad76474fed8052b6f7b905a054d082e59a (patch) | |
tree | 9918f68e9c5f93be98940b4b7b478e1637547926 /mm | |
parent | 56f2fb147659e05b1e87b99791bf44b988d38545 (diff) |
asm-generic, mm: pgtable: consolidate zero page helpers
We have two different implementation of is_zero_pfn() and my_zero_pfn()
helpers: for architectures with and without zero page coloring.
Let's consolidate them in <asm-generic/pgtable.h>.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memory.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/memory.c b/mm/memory.c index f9a4b0cb8623..3f680e7c7645 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -717,13 +717,6 @@ static inline bool is_cow_mapping(vm_flags_t flags) | |||
717 | return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; | 717 | return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; |
718 | } | 718 | } |
719 | 719 | ||
720 | #ifndef is_zero_pfn | ||
721 | static inline int is_zero_pfn(unsigned long pfn) | ||
722 | { | ||
723 | return pfn == zero_pfn; | ||
724 | } | ||
725 | #endif | ||
726 | |||
727 | /* | 720 | /* |
728 | * vm_normal_page -- This function gets the "struct page" associated with a pte. | 721 | * vm_normal_page -- This function gets the "struct page" associated with a pte. |
729 | * | 722 | * |