From patchwork Mon Oct 25 09:21:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rongwei Wang X-Patchwork-Id: 12581117 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58494C433FE for ; Mon, 25 Oct 2021 09:21:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EE86161090 for ; Mon, 25 Oct 2021 09:21:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EE86161090 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 51A36940007; Mon, 25 Oct 2021 05:21:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4C9FE6B0078; Mon, 25 Oct 2021 05:21:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3DF73940007; Mon, 25 Oct 2021 05:21:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0096.hostedemail.com [216.40.44.96]) by kanga.kvack.org (Postfix) with ESMTP id 2EF646B0075 for ; Mon, 25 Oct 2021 05:21:44 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id C1C3129309 for ; Mon, 25 Oct 2021 09:21:43 +0000 (UTC) X-FDA: 78734417286.17.4BCB5E9 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by imf26.hostedemail.com (Postfix) with ESMTP id 9C79520019D6 for ; Mon, 25 Oct 2021 09:21:43 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=rongwei.wang@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UtZwp5E_1635153697; Received: from localhost.localdomain(mailfrom:rongwei.wang@linux.alibaba.com fp:SMTPD_---0UtZwp5E_1635153697) by smtp.aliyun-inc.com(127.0.0.1); Mon, 25 Oct 2021 17:21:38 +0800 From: Rongwei Wang To: akpm@linux-foundation.org, willy@infradead.org, song@kernel.org, william.kucharski@oracle.com, hughd@google.com, shy828301@gmail.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH 0/2] fix two bugs for file THP Date: Mon, 25 Oct 2021 17:21:32 +0800 Message-Id: <20211025092134.18562-1-rongwei.wang@linux.alibaba.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Stat-Signature: nwuk8h48bxqf87monsmn1psr7u3387ye Authentication-Results: imf26.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf26.hostedemail.com: domain of rongwei.wang@linux.alibaba.com designates 115.124.30.130 as permitted sender) smtp.mailfrom=rongwei.wang@linux.alibaba.com X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 9C79520019D6 X-HE-Tag: 1635153703-816906 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Patch 1/2 had been sent about weeks ago, the original link here: https://patchwork.kernel.org/project/linux-mm/patch/20211011022241.97072-2-rongwei.wang@linux.alibaba.com/ It seems to be ignored, and send out again here. Patch 2/2 is sent out first time. And Patch 1/2 and 2/2 both to fix different bugs for commit eb6ecbed0aa2 ("mm, thp: relax the VM_DENYWRITE constraint on file-backed THPs"). In addition, I find the stable version (I had check 5.14) has contained above commit (eb6ecbed0aa2), so I will add "cc stable mail list" when sending Patches. Thanks! Rongwei Wang (2): mm, thp: lock filemap when truncating page cache mm, thp: fix incorrect unmap behavior for private pages fs/open.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-)