mm/huge_memory: fix total_mapcount assumption of page size
authorKirill A. Shutemov <kirill@shutemov.name>
Fri, 16 Oct 2020 03:05:33 +0000 (20:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:15 +0000 (11:11 -0700)
commit86b562b629728a072e6928bdc02a105d358a007d
tree3f4c2ca3b8deb47ba07da752b090c97b294b5240
parent8fb156c9ee2db94f7127c930c89917634a1a9f56
mm/huge_memory: fix total_mapcount assumption of page size

File THPs may now be of arbitrary order.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: SeongJae Park <sjpark@amazon.de>
Cc: Huang Ying <ying.huang@intel.com>
Link: https://lkml.kernel.org/r/20200908195539.25896-5-willy@infradead.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c