linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Song Liu <songliubraving@fb.com>
To: <linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>,
	<akpm@linux-foundation.org>
Cc: <matthew.wilcox@oracle.com>, <kernel-team@fb.com>,
	<william.kucharski@oracle.com>, <kirill.shutemov@linux.intel.com>,
	Song Liu <songliubraving@fb.com>
Subject: [PATCH v5 0/2] fix and improvement for file THP
Date: Tue, 5 Nov 2019 22:09:28 -0800	[thread overview]
Message-ID: <20191106060930.2571389-1-songliubraving@fb.com> (raw)

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


             reply	other threads:[~2019-11-06  6:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-06  6:09 Song Liu [this message]
2019-11-06  6:09 ` [PATCH v5 1/2] mm,thp: recheck each page before collapsing file THP Song Liu
2019-11-08  3:53   ` Andrew Morton
2019-11-08  3:58     ` Song Liu
2019-11-13 23:47   ` Song Liu
2019-11-15  0:10     ` Andrew Morton
2019-11-06  6:09 ` [PATCH v5 2/2] mm/thp: flush file for !is_shmem PageDirty() case in collapse_file() Song Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191106060930.2571389-1-songliubraving@fb.com \
    --to=songliubraving@fb.com \
    --cc=akpm@linux-foundation.org \
    --cc=kernel-team@fb.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=matthew.wilcox@oracle.com \
    --cc=william.kucharski@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).