Message ID | d90ff787a51aae928324ef2df0a3012818e261fe.1727148662.git.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 CBA0ECF9C6B for <linux-arm-kernel@archiver.kernel.org>; Tue, 24 Sep 2024 06:15:29 +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=BmENsM1LVZMrc0W501TyzYIERT8c75Mhan1AJ9vs73Q=; b=PR+XRPp+4P2ynGvEB942DtHW13 WwXSsKgYrXl1789XUr79zlS2+rgX18OhNvEbVqMn/kaeH4KKkodvVh7Te+hNHRXcFYkPVYY4x90mg YJiAbe1TsEej5Moj6luaYPjNfoBdqjN82NRF4KGdEKq79BZFJaQVvcMYJipHh4Cob4hEh3l5oOnol vRconI4trMUnN0XRxk2b160oqbMOBDpZq/jTQCRWBNadIzS3vnelZdqrefreFReCW44O/JQOEuaFG piMHuhpQxk2dckkEWMemqdYqsyikTNLDv7vQS/Zjyt6C+wRAssd6UPZT1yYDCT4xF5rXGSVRAqEmG iT3Wy1/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1ssypT-00000001DBb-2lhq; Tue, 24 Sep 2024 06:15:19 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ssyl6-00000001BkY-0Dsv for linux-arm-kernel@lists.infradead.org; Tue, 24 Sep 2024 06:10:49 +0000 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-206e614953aso49436345ad.1 for <linux-arm-kernel@lists.infradead.org>; Mon, 23 Sep 2024 23:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1727158247; x=1727763047; 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=BmENsM1LVZMrc0W501TyzYIERT8c75Mhan1AJ9vs73Q=; b=BFOP747hCent+aEfpuAUNsFO2/yD9fGO15NqWF5Cfi0WjhPR+G1n9rz8z6NKibgAa0 QRh6x167NrvkcSgKVo/2dVjx30TM9vKxj9RgGj29HG1U/9FbLonIvLB1z3aLFby9huXf IRoLJOB6PX1EfyaKfVg5NheXX2oszO9FnXfybyWdAxjPGkPaxPJ7qSoreJWtrcm7HUiW jkaPgenvMuEq56o7nirInEIva7N+NdH6+xutZ1tXBgqCyx/h3OkKd1vqL8yRwIy7dAh2 ZWKwElyZ/XdqjpastPdsAF+lT+gQB+FBh6GlxwB90RB/HVxs7pfK7FbzSRKHmuas7aRz Omfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727158247; x=1727763047; 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=BmENsM1LVZMrc0W501TyzYIERT8c75Mhan1AJ9vs73Q=; b=AjKgeaLLGgFdm+dRBDC1iSjb2LmjiH6fyDFSw1N8bv+Snv/ghb0c2/KsKMYpTQc5ld BzkoMNDvuHbv+Re3zhSef5ZpFxw5mxpqqUrciWrY9MzbJrDs9zGdGqZDJ6XqJzv0/vAJ EGE2Et6YIG9tnlfqNBHNZbRby4Eq4y5+IoSG0PQw1vIavAg5bag5lvbfDldBAHF/wkSI znGV1RS662dL7TaWhYX04R+lxN4yBg35k9UHjK/ToXhco2HdvQNLuP1kBGLJyvLQ0AJE 3ZeTIqtLcP4NPigcWWTEsJewFgpXEJt7GHNK0DSuqpmbzRBkB6+gaSZ7G1aRh2Y2I+po 3n0A== X-Forwarded-Encrypted: i=1; AJvYcCVXZbFWljPayfd+OVlE6totBXmeYx5VcJWLhgFL7aI3ivctXMBW0XlfI5db4IReomti1tD39V0cHfUKB3JE0nhH@lists.infradead.org X-Gm-Message-State: AOJu0YzyauUQG4Qv8WM3T1oYcxdwzx3OiX9wGQJCZdDnNQkhU9r4GEFh hR08/HIOgRlVycNJ1ax88tInWFqM2gq6pxtvLPpV0vrvdtZcrsoJb8q2/FYrCeA= X-Google-Smtp-Source: AGHT+IGm87aqttqV2Aef0OLuq60VY3Mp4w41J7dgMXq2Y+1L52786e2U6HUOab2ZHlW+VZaRsZgruQ== X-Received: by 2002:a17:903:22c5:b0:205:6f2d:adf7 with SMTP id d9443c01a7336-208d83a8387mr177369015ad.21.1727158246651; Mon, 23 Sep 2024 23:10:46 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([63.216.146.178]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20af17229c9sm4344885ad.85.2024.09.23.23.10.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2024 23:10:46 -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 v4 03/13] mm: filemap: filemap_fault_recheck_pte_none() use pte_offset_map_ro_nolock() Date: Tue, 24 Sep 2024 14:09:55 +0800 Message-Id: <d90ff787a51aae928324ef2df0a3012818e261fe.1727148662.git.zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <cover.1727148662.git.zhengqi.arch@bytedance.com> References: <cover.1727148662.git.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-20240923_231048_119125_7280D642 X-CRM114-Status: GOOD ( 11.59 ) 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 3e46ca45e13dc..6c6ff8722550f 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -3271,8 +3271,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;