]> 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)
commit262f1ade14184b8c138d0f6597d340df7975db07
tree1e415182e3a9788e969d044b0b26aebf4ea0e3e9
parent59fd59032de04ff952e8d6b2f5ceaa0c3c21da42
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