thp: move maybe_pmd_mkwrite() out of mk_huge_pmd()
authorKirill A. Shutemov <[email protected]>
Thu, 12 Sep 2013 22:14:01 +0000 (15:14 -0700)
committerLinus Torvalds <[email protected]>
Thu, 12 Sep 2013 22:38:03 +0000 (15:38 -0700)
commit3122359a64829afd231bad6ed899b557f46280e9
tree988ce8e120c6bacf69c611458f4528baac1d3d66
parent66a0c8ee3dce78362d59f00a8efbd752fbeddfb1
thp: move maybe_pmd_mkwrite() out of mk_huge_pmd()

It's confusing that mk_huge_pmd() has semantics different from mk_pte() or
mk_pmd().  I spent some time on debugging issue cased by this
inconsistency.

Let's move maybe_pmd_mkwrite() out of mk_huge_pmd() and adjust prototype
to match mk_pte().

Signed-off-by: Kirill A. Shutemov <[email protected]>
Acked-by: Dave Hansen <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Wu Fengguang <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Hillf Danton <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/huge_memory.c