mm: use vma_is_anonymous() in create_huge_pmd() and wp_huge_pmd()
authorKirill A. Shutemov <[email protected]>
Wed, 9 Sep 2015 22:39:35 +0000 (15:39 -0700)
committerLinus Torvalds <[email protected]>
Thu, 10 Sep 2015 20:29:01 +0000 (13:29 -0700)
commitfb6dd5fa4165c4b82f1a11416c2fc192ae3a84e2
tree0dae4e152583f047de37f625e6e1af9d51a40841
parent6dc296e7df4c9a0857491cc3f55da16a9eeeeae7
mm: use vma_is_anonymous() in create_huge_pmd() and wp_huge_pmd()

Let's use helper rather than direct check of vma->vm_ops to distinguish
anonymous VMA.

Signed-off-by: Kirill A. Shutemov <[email protected]>
Reviewed-by: Oleg Nesterov <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memory.c