[PATCH v5 0/2] fix and improvement for file THP
From: Song Liu
Date: Wed Nov 06 2019 - 01:10:17 EST
This set includes a fix and an improvement for file THP.
1/2 fixes pagecache corruption for file THP, where !PageUptodate page gets
collapsed into huge page. 1/2 is needed for 5.4.
2/2 improve collapse of file THP by flushing dirty page in collapse_file().
2/2 can wait until 5.5.
Thanks,
Song
Song Liu (2):
mm,thp: recheck each page before collapsing file THP
mm/thp: flush file for !is_shmem PageDirty() case in collapse_file()
mm/khugepaged.c | 42 ++++++++++++++++++++++++++++++++----------
1 file changed, 32 insertions(+), 10 deletions(-)
--
2.17.1