Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp5744lql; Tue, 7 May 2024 08:21:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOzHP75yM44Hj8g2cwXO61T5me6JTNAqZWa+wV7viv7mEqeuXWe4kFHuyvFKU2Z+JgrN7VBJiddPSyQ1aXUoK69TJ7dAP9ChYHaDB02A== X-Google-Smtp-Source: AGHT+IFTTCGlI8ysdEVrG+XbQ81rWGe6pCU2YtSVlPJMrW8Lj2PccMZf0ko0wkfq0dcY/TssmftE X-Received: by 2002:a05:6e02:1aa8:b0:36a:32f2:fc76 with SMTP id l8-20020a056e021aa800b0036a32f2fc76mr17675877ilv.26.1715095296996; Tue, 07 May 2024 08:21:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715095296; cv=pass; d=google.com; s=arc-20160816; b=dXd2wy3DFBhkaoCCU66niLbFUqWFPuCJp/HQ9c875u3zRTlJK+/mR7+2TyK4Do4Gn2 uTUPTMiKHMHI2IJ0IM44qVamoWSh/X7soRpU1wEdU90TQmD26yKnUogdvBONTaa/J+j7 sf3m+c/ULg5PQ0MihuVtw2uXSXXki6jBYjNLkF2xnDxQWZP7qg612Kkxsj7aFFLkoaQS Z/AXn1KUjI4w8AwJz9KRYvEINFrMuZhXWQICRISJ+nmTMbAimo1ybey+dQ1LTAEt6CO/ lCSNGOpH62CflR63rGjZrxM+CPZ9e/6Aj5mG8FESL3xCLbh/+6lQhz0+vksj3hkZ+0GF Ay3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=s8YKg7NkiQQzPDt2U04+751t+jIfci6F7qG1eD549Yk=; fh=r4l9AUJcIDx94IK8Zb1ph9c3q45MbYaC1UvHmjqVAsI=; b=QZohWQMIzf8p9ftFGFQ15NjWhgD+L2t88e2g8st3wMifRFEAFi9kkpC/HnRFH2sgI4 CJzM/f8zHqD+yIPAet2hh1x4hWUE+PSyonHHzT4XQzxai5l/jFt5sEfYa0cb1atneG1A TKWaoMmXp7RiaSX12Ce3iKDx+BNEyPWNVe1uIglHkfNmMsY9t0L1NMNHws4XxT3oq+8M 5r8L+VuIt81yHs2Q7F0Mvu6Q8ks+UcIaevyuKZ7luXrsuvcMc/wxHiS6h22Osxqb4rJN hoIgqqT5F3dm2ufDb0We4zYd8pfy3ogwsjt83UhiV+cvdijJubUYxEAmglPPMExUR/eY 7/NA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WnDutfrb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-171628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h127-20020a636c85000000b005f7fcf8cddbsi10072648pgc.831.2024.05.07.08.21.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:21:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WnDutfrb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-171628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DE232B283A7 for ; Tue, 7 May 2024 14:54:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD46615F414; Tue, 7 May 2024 14:53:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WnDutfrb" Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83691155A55 for ; Tue, 7 May 2024 14:53:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715093638; cv=none; b=ezE/P5HV9or7XaeFELvEY2bat3NaJemyFC8A7Uct2uWHwkL+ko+oIajEIz7KAUiLR2eKugSWFCuGuawMcuHKMv3p5cBJGwsvMCBRgl6B5U8VVoQxlwcWuCkIH64nsBzMfR31016EOYHPVSLv7jbMHjUPhyuLmHVv2x+JlWq3Doo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715093638; c=relaxed/simple; bh=R3rN9uuCSrcyQrLmqe+2GgL8E4NP/EKwpC06F+iLVk0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=HVXTl+oi/2emhZinm9pkPK4MRXhx0RzAKky/rLpUIxRC+Ss6WNfTqyWsMFebYkwH66xKCS+pRsi5dw/3HK3k3afdOrwQYazYOqoaTDWrxEQIf7zmrcq57sqIzTcMJTPVlHPCcBzF3bCMNMmjygPqu5ZU8KNH5tKdIxAKTjbAzHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WnDutfrb; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a59a387fbc9so807654866b.1 for ; Tue, 07 May 2024 07:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715093635; x=1715698435; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=s8YKg7NkiQQzPDt2U04+751t+jIfci6F7qG1eD549Yk=; b=WnDutfrbn2hxldjCn6KkP7RuBq0/yYvfn7AQFlJWkTYPbCMfn9O2KhaFk8CC0YYLP/ AS10+3oUahOjcOAGZV2H9LzUeVk6YIONA64oru6sVOq1uMJCKwBc9Q2CnfBoNBc3M1vN XbdiASNb2Od+6wNqrPeQa9WoejEo5KADFVWIXlCfOyI5OMJnaNWMAuXE15f7icG+9uvt 44uzciAfAzldnY8h7voe6e20fUJcdIB7lUErFMpsujf9d21/d/3PM51HFx/yq7ll/yb6 NtAd7e8P9BHoY8u6oDOk9F14xKve985MywT1e6gGUKN8H0VRoNLCI+16PbxK9WGuknOu JFqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715093635; x=1715698435; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s8YKg7NkiQQzPDt2U04+751t+jIfci6F7qG1eD549Yk=; b=pGx98kF5DC1ZXUvIyaE63lUP1aUxt6CLGzI8kIwvZg4CNmBkFOQU6KiYzCXSjJ/4S4 aXuIT+jdmtBbdJdZ4zp/mmmGUnNBjG7hobYJFJHM+y5O0nbvG+XU7MVtcEzM6t3K5fAp oN7Q6rzyCJfWJQ6w4bKL30w/BRCITEpiQY4iimWWXkikilXxYonfyfH9BknPZcXe66F1 BQS+WALeQ2YeQ9oSYEsGj5k95Ncj5mjVx63ILe/pInKADm8lOzL1a9fOmKtl1GQC4VYh 7dH6NPfBoIqPo8riVU/Zf3WUyw+IL9YZtdG3A8m7LgLsDRzdLq24S7kjRX8IfKvAsCUA mp8w== X-Forwarded-Encrypted: i=1; AJvYcCX8DpHb72ANfRChwBdF7jyXXCm7qJiVDBodiLlKzg+tzw4ABFCLDAU70uWl9ihxOx/0EDe5SwHpPCcqqsORhnS0JpEzIBBHXD+OPHEW X-Gm-Message-State: AOJu0Yy38tDC5YYRE+xYV4+P9mwYrHqiRJxAfmQCU8eNFnRZ7N7yu9Ov 2ARtEk0mqif+NE0zd6otjoPP6gW8LyGetGEtpOdSF3iZdxVGhqkAAiXodFAOFLZw/tROD6Sp39N fbWb2/ah28tU0XBJZbT7mAytxu9g= X-Received: by 2002:a50:a44f:0:b0:56f:e75b:839a with SMTP id v15-20020a50a44f000000b0056fe75b839amr8760934edb.1.1715093634415; Tue, 07 May 2024 07:53:54 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240501042700.83974-1-ioworker0@gmail.com> <20240501042700.83974-2-ioworker0@gmail.com> <0B21BF2F-26D1-44EA-B5C5-D0D490BB90CC@nvidia.com> In-Reply-To: <0B21BF2F-26D1-44EA-B5C5-D0D490BB90CC@nvidia.com> From: Lance Yang Date: Tue, 7 May 2024 22:53:43 +0800 Message-ID: Subject: Re: [PATCH v4 1/3] mm/rmap: remove duplicated exit code in pagewalk loop To: Zi Yan Cc: akpm@linux-foundation.org, willy@infradead.org, sj@kernel.org, maskray@google.com, ryan.roberts@arm.com, david@redhat.com, 21cnbao@gmail.com, mhocko@suse.com, fengwei.yin@intel.com, zokeefe@google.com, shy828301@gmail.com, xiehuan09@gmail.com, libang.li@antgroup.com, wangkefeng.wang@huawei.com, songmuchun@bytedance.com, peterx@redhat.com, minchan@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 7, 2024 at 10:51=E2=80=AFPM Zi Yan wrote: > > On 1 May 2024, at 0:26, Lance Yang wrote: > > > Introduce the labels walk_done and walk_done_err as exit points to > > eliminate duplicated exit code in the pagewalk loop. > > > > Signed-off-by: Lance Yang > > --- > > mm/rmap.c | 40 +++++++++++++++------------------------- > > 1 file changed, 15 insertions(+), 25 deletions(-) > Hey Zi, > LGTM. Reviewed-by: Zi Yan Thanks for taking time to review! Lance > -- > Best Regards, > Yan, Zi