mbox series

[v5,0/2] fix and improvement for file THP

Message ID 20191106060930.2571389-1-songliubraving@fb.com (mailing list archive)
Headers show
Series fix and improvement for file THP | expand

Message

Song Liu Nov. 6, 2019, 6:09 a.m. UTC
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