thp: cleanup split_huge_page()
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Tue, 15 Mar 2016 21:57:30 +0000 (14:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Mar 2016 23:55:16 +0000 (16:55 -0700)
commit8df651c7059e7980f08430d4ebbd134b046657ee
treee5a53184414736b25e4436ff30aa28360573d2bb
parent88193f7ce6657ec4197b1f26b73b37197373b8e6
thp: cleanup split_huge_page()

After one of bugfixes to freeze_page(), we don't have freezed pages in
rmap, therefore mapcount of all subpages of freezed THP is zero.  And we
have assert for that.

Let's drop code which deal with non-zero mapcount of subpages.

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>
mm/huge_memory.c