diff options
author | Kirill A. Shutemov | 2014-06-04 16:08:10 -0700 |
---|---|---|
committer | Linus Torvalds | 2014-06-04 16:54:04 -0700 |
commit | 4bbd4c776a63a063546552de42f6a535395f6d9e (patch) | |
tree | 2a722c3bde3f3dabf85030b391b44c2cb3972df2 /mm/internal.h | |
parent | f4527c90868d8fa175c68ccf216cf9b67a7d8a1a (diff) |
mm: move get_user_pages()-related code to separate file
mm/memory.c is overloaded: over 4k lines. get_user_pages() code is
pretty much self-contained let's move it to separate file.
No other changes made.
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/internal.h')
-rw-r--r-- | mm/internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/internal.h b/mm/internal.h index 07b67361a40a..6ee580d69ddd 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -169,6 +169,11 @@ static inline unsigned long page_order(struct page *page) return page_private(page); } +static inline bool is_cow_mapping(vm_flags_t flags) +{ + return (flags & (VM_SHARED | VM_MAYWRITE)) == VM_MAYWRITE; +} + /* mm/util.c */ void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma, struct vm_area_struct *prev, struct rb_node *rb_parent); |