Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2370829rwa; Mon, 22 Aug 2022 06:46:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR7G7eIkdzOGR4xDEvD+chmrwUJrWv/N6UXbpIMG7/Wg3sdB578f60WTDoMADqJk3oSmfcds X-Received: by 2002:a05:6402:378f:b0:43a:d3f5:79f2 with SMTP id et15-20020a056402378f00b0043ad3f579f2mr16460563edb.338.1661175974736; Mon, 22 Aug 2022 06:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661175974; cv=none; d=google.com; s=arc-20160816; b=Xbt7iH+0d+zMfO9i4iUutZOIjvZHTCSSB8syRG3uqDKkmOnNqEONjWsLcBLNPIQY5N LnTBLw4ru9kYPp8TtIu5jYB2ZMpcGfUWaESjXZQA/Vp+xx1HWaWFoBAiDbq0waXnldId wj/VKTjwhiqwr1a3rhHDEsueaLf12y6J3DDTKSOceNrY8q4EvJV6XNTLD++KRpipA4RK zqtRFRYyOE4lxroLM/mb5zDaGKcj8B1bsDvVGBk0nETxpB9mX2KQ2+W3yvBtGFypirEM a3aZAPFD9FPEl+Jv5BFDV1vX3SVRxUXekC6RK/70QxgNJ+r2Go9WIue41MwziTSWqMcY jE6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from; bh=yhLMybcuatTc3Q5YBJE4kIZHDAdBNlCE5xL4mlQg07s=; b=cbO1pUgV20VqtsUb6JYRIPnar2rKWwKZ5uCgC8bKDp1imp1LSJ5JwfX+HQ6d+TxFYp RUi0z8oo5ptcsIqDhQNwlvvyEuNNPrUjhnDquCPW5fj+X5lBmQMevIrW1oG8e7BENVjY 5jpyNrOKhmi0LP91JkQow3Vyq+oDez1Udn+RFNBlbvHAvu8VReomg8NOvQsZte3UhGGD 7EwFPLzn+5aDA4u73d9wTxFtbQdklHKSOpmfjlhbx0DIHFqjOKFpWzKTtpOR6PHmqeck UQBRYOGC00R/4c99KKtrCx3bVozNjVZhGARLIiBsD4MbbGp1JYa/bNU6Sj8RX40APxN+ +IeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a056402350f00b0043d68d2cf50si11175548edd.77.2022.08.22.06.45.48; Mon, 22 Aug 2022 06:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235073AbiHVNeJ convert rfc822-to-8bit (ORCPT + 99 others); Mon, 22 Aug 2022 09:34:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234147AbiHVNeC (ORCPT ); Mon, 22 Aug 2022 09:34:02 -0400 Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4F1E15A0C for ; Mon, 22 Aug 2022 06:34:00 -0700 (PDT) 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 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.37.2 -- Rolf Eike Beer, emlix GmbH, http://www.emlix.com Fon +49 551 30664-0, Fax +49 551 30664-11 Gothaer Platz 3, 37083 Göttingen, Germany Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160 Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055 emlix - smart embedded open source