From patchwork Mon Aug 22 13:00:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rolf Eike Beer X-Patchwork-Id: 12950651 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7873CC28D13 for ; Mon, 22 Aug 2022 13:55:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F11136B0074; Mon, 22 Aug 2022 09:55:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EC0506B0075; Mon, 22 Aug 2022 09:55:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DAFB48D0001; Mon, 22 Aug 2022 09:55:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id CBEE76B0074 for ; Mon, 22 Aug 2022 09:55:03 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 9212F12065F for ; Mon, 22 Aug 2022 13:55:03 +0000 (UTC) X-FDA: 79827374886.11.4CC7484 Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by imf09.hostedemail.com (Postfix) with ESMTP id 4D80D142B36 for ; Mon, 22 Aug 2022 13:34:00 +0000 (UTC) Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 575EF601A4; Mon, 22 Aug 2022 15:04:37 +0200 (CEST) From: Rolf Eike Beer To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] mm: pagewalk: don't check vma in walk_page_range_novma() Date: Mon, 22 Aug 2022 15:00:47 +0200 Message-ID: <21585888.EfDdHjke4D@devpool047> Organization: emlix GmbH In-Reply-To: <3200642.44csPzL39Z@devpool047> References: <3200642.44csPzL39Z@devpool047> MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1661175240; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n8m+V1Y6XrK9pILF4D7rSTVPemA+QVsVgB6jRS23avA=; b=nXE0MSYbJR9lNx29dEP6W4CbQZgC4R/TuE47vO6SrOVqWJlnz28sJXWoT5G8RFuhYUv9Ht yXzVcLMpxqecl756hajirS9RI9Teubtc2ZcUylu0eQ9a4HoLm6rDX6t3jv61QcJXKK40GD pKi37GIGeVZ6/WiAKuI7D2AvhM09T7s= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of eb@emlix.com designates 136.243.223.33 as permitted sender) smtp.mailfrom=eb@emlix.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661175240; a=rsa-sha256; cv=none; b=3xRG3ttl4s6L4X+6ISz1Thf8FM2+PUZ2vCNHIl3vi5M2UYO+9E8NLzJ4itO7cngi2ViQvl 5t/8pfg6rjyAKWoke3YOm5DRYPz134EzBUVkyU0GAzLtzzTe2M0MifDsxI7B8sGvcrzJAv W1h5s4rWdpms4YCghqzrQf3baKviz7E= X-Stat-Signature: eaasbepp74ds4rzok4mt5quu914fdgn7 Authentication-Results: imf09.hostedemail.com; dkim=none; spf=pass (imf09.hostedemail.com: domain of eb@emlix.com designates 136.243.223.33 as permitted sender) smtp.mailfrom=eb@emlix.com; dmarc=none X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 4D80D142B36 X-Rspam-User: X-HE-Tag: 1661175240-803969 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: Directly call walk_pgd_range() as that is everything that will actually happen in __walk_page_range() besides checking if the vma is set. Signed-off-by: Rolf Eike Beer --- mm/pagewalk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/pagewalk.c b/mm/pagewalk.c index c67b2532db8f..a06eb100fe4e 100644 --- a/mm/pagewalk.c +++ b/mm/pagewalk.c @@ -517,7 +517,7 @@ int walk_page_range_novma(struct mm_struct *mm, unsigned long start, mmap_assert_locked(walk.mm); - return __walk_page_range(start, end, &walk); + return walk_pgd_range(start, end, &walk); } int walk_page_vma(struct vm_area_struct *vma, const struct mm_walk_ops *ops,