mm: thp: simplify the implementation of mk_huge_pmd()
authorYang Shi <yang.shi@linaro.org>
Fri, 20 May 2016 23:57:30 +0000 (16:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commit340a43bed674a70308f196f2a61ec0b01f8a14d9
tree6322ff7a252650d7a7face60e648a2add7d12668
parentf44666b04605d1c7fd94ab90b7ccf633e7eff228
mm: thp: simplify the implementation of mk_huge_pmd()

The implementation of mk_huge_pmd looks verbose, it could be just
simplified to one line code.

Signed-off-by: Yang Shi <yang.shi@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c