Message ID | 20240904084022.32728-5-zhengqi.arch@bytedance.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1F13CCD3431 for <linux-arm-kernel@archiver.kernel.org>; Wed, 4 Sep 2024 09:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Mwcb7WVpeL59BmxGU8FtBVb/FvaDY4mjrVacU9l97yw=; b=FkcCTWJbPel+UuQeAu31ZFym2y nexVsZG1dwpPEfrD1jki4RV2RMZ7yLtwrVWP8aAxTxq+UnZEraBEBspe0PZwhB0RntCgYaRX5E7CT NcQhq3CbvefwMMoWNeilMucvpiJ9AgNv9VIPkjdKXu05NLWA9FhNeTBn6zQ66ysVat/X3SwNPYyk+ Io4l373HKAVUy9rgwrYhSncQfCEdBp1JCxCW73SdB79OV5OKVrJiu7hwBRVpfG0VfEGVfd5mmhvZR m0So8o925fzJgkbsJWzNcn1bJGk+vTHzSi363nSSJA02RrhPxM4s8DEkwx/cll9r3CHD/Cb6ZLyO4 BPDlFSEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slm1V-00000003bgB-2KtQ; Wed, 04 Sep 2024 09:09:57 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sllZe-00000003T7S-0slP for linux-arm-kernel@lists.infradead.org; Wed, 04 Sep 2024 08:41:11 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-206b9455460so3336475ad.0 for <linux-arm-kernel@lists.infradead.org>; Wed, 04 Sep 2024 01:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1725439269; x=1726044069; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Mwcb7WVpeL59BmxGU8FtBVb/FvaDY4mjrVacU9l97yw=; b=iTe7RcUahah340lKzCQVm9utZVMkhDS5IWZYJ3PfgZp1W5Kt8a2BiAMV+npgIZAnNQ kXuVmVhnhze9Rq/BsN6M72b002dJHQ6J7SktajZZ98zP/5vWG3dT+T/r/LZKJxyyDKFO 93Jn6bgwqVXcgDsXeYsz8iC93yJXw1zUOujZQYYPuRnkwgoc6OiCR9+u1axTbF1iC4hj 8yt8YMZ/ba4gFT9fYhV5baoGKAFXJzX2CknCKNmcdkBQeMKRon2yUvZ3aEEf/L/2Fc+6 ADYjKCj4d1XXCeGMfA1GGr86YabwzdgO0Rsb7yJO+l0NeCdEQeocIdvVy3ZATDopXt78 MJqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725439269; x=1726044069; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Mwcb7WVpeL59BmxGU8FtBVb/FvaDY4mjrVacU9l97yw=; b=meAXHDMwx+1JgjTRursDH4UzSzyv0jR3CQ+XBlnSRWIVp409g/GjkSB8Ps9b5JSR9K YhkHNxjLVgppSfO0rWvwSTub4lHJRg0wY3MRsk3h4rTuqH+GlUFNnF67Ghn7ndrc3Vvi wP84xD1UqCGciv/fnly7JW9FLE0buUZsAVIe72S+WBDblSYAR5ZVktS9deheArlokydl VJbNdpFIVIWHY/MePLjj/5SIW7zXsnLLeY5PmNyOXbQiKzb/6cSRcdurrVcmblvsMWVA cIFfu0lkCfI83d/FSTbR5S9thIA1RLmbeKMT6un+BgzBdiUJOyW+MWrtyz/2PX1oXsWv kPAg== X-Forwarded-Encrypted: i=1; AJvYcCXeGP3f//LG6zVXH3rE4jtbOzHG4tymhp/TDyKYAQCEV362qsFPTjPpbk9ERgkwkMHrzqxXmlmNvvpkZEm3HlQV@lists.infradead.org X-Gm-Message-State: AOJu0YyitzjPoqDaW/du8Qp6p5FIQvDj8X0AKg9UQ/aIWLAiIz1P7/40 XfarJMJnOQ1v1knqljx0t8HsUvithDVJNlH9WErQrqlKke8LKZwF+zx0vb41m/M= X-Google-Smtp-Source: AGHT+IHVi0h+YpQWstt2F+C2N++FuREpmzHqlVlqHX+adh/zaJT2MbahvdDpXAnk4gZu2G3FJSfhgA== X-Received: by 2002:a17:902:f60b:b0:206:9dfb:3e9e with SMTP id d9443c01a7336-206b832146bmr25150715ad.10.1725439269514; Wed, 04 Sep 2024 01:41:09 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.242]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-206ae95a51csm9414045ad.117.2024.09.04.01.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 01:41:09 -0700 (PDT) From: Qi Zheng <zhengqi.arch@bytedance.com> To: david@redhat.com, hughd@google.com, willy@infradead.org, muchun.song@linux.dev, vbabka@kernel.org, akpm@linux-foundation.org, rppt@kernel.org, vishal.moola@gmail.com, peterx@redhat.com, ryan.roberts@arm.com, christophe.leroy2@cs-soprasteria.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Qi Zheng <zhengqi.arch@bytedance.com> Subject: [PATCH v3 04/14] mm: filemap: filemap_fault_recheck_pte_none() use pte_offset_map_ro_nolock() Date: Wed, 4 Sep 2024 16:40:12 +0800 Message-Id: <20240904084022.32728-5-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20240904084022.32728-1-zhengqi.arch@bytedance.com> References: <20240904084022.32728-1-zhengqi.arch@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240904_014110_348283_AA49FF2E X-CRM114-Status: GOOD ( 11.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
introduce pte_offset_map_{ro|rw}_nolock()
|
expand
|
diff --git a/mm/filemap.c b/mm/filemap.c index 20346df53df3b..216405ba497ea 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -3251,8 +3251,8 @@ static vm_fault_t filemap_fault_recheck_pte_none(struct vm_fault *vmf) if (!(vmf->flags & FAULT_FLAG_ORIG_PTE_VALID)) return 0; - ptep = pte_offset_map_nolock(vma->vm_mm, vmf->pmd, vmf->address, - &vmf->ptl); + ptep = pte_offset_map_ro_nolock(vma->vm_mm, vmf->pmd, vmf->address, + &vmf->ptl); if (unlikely(!ptep)) return VM_FAULT_NOPAGE;