]> git.baikalelectronics.ru Git - kernel.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)
commitbb4691552206ad747a4e991fbe11398ee3a7c393
tree1e415182e3a9788e969d044b0b26aebf4ea0e3e9
parent567c7a92b68586dd47aa0c05fbfc92233b4e3515
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