]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm/huge_memory: fix split assumption of page size
authorKirill A. Shutemov <kirill@shutemov.name>
Fri, 16 Oct 2020 03:05:36 +0000 (20:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:15 +0000 (11:11 -0700)
commit8cce54756806e5777069c46011c5f54f9feac717
tree1e415182e3a9788e969d044b0b26aebf4ea0e3e9
parent86b562b629728a072e6928bdc02a105d358a007d
mm/huge_memory: fix split assumption of page size

File THPs may now be of arbitrary size, and we can't rely on that size
after doing the split so remember the number of pages before we start the
split.

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-6-willy@infradead.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c