Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2415743rdf; Mon, 6 Nov 2023 13:36:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IFY85Uuibog4Bdwwt2R9H/R5QfakkJA4PGY/93bdIcp57ZynuAXrWGxeIIuqzvbcU6Z53U4 X-Received: by 2002:a17:90a:db92:b0:27e:277:3014 with SMTP id h18-20020a17090adb9200b0027e02773014mr23251956pjv.11.1699306581100; Mon, 06 Nov 2023 13:36:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699306581; cv=none; d=google.com; s=arc-20160816; b=rmxN0Lgu2HTJuAHDzLmPodu+yXm0C52mKZYrlGb89o0v9bYVLBZ/Jpmq6VzqHzfQY8 fBlk8p9+qJB0ggtVxhDl3N76c5waQr5yW56iZxOE8M4OzhJwRxjVpcr6s5NGoOi3FWPn Yta+RWxCCsO5PSfG5IOl+Y1W4/JeNjOfdIEJOYL+L2FcJUxlaOmfvxKXnNGjYwdcKOuw DtbhyAwkuPV20i6LMxJDbwDrCT0T+JiLtn6+48qSOxwVsjAWm4sGyUWG/j2byQ+8SaRC YxVr8Ay6nEkeQyY80bI2/98m62QoRg8vQT5l68MpsaHFUkTjIO+wP1xgaARF93cUsqDO x7qg== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=LgVb94CcZVd/QkXoxBdmEVaXIyB4jRsT/YrtlPClarE=; fh=TlcQPDcRmBQtSqLefYzv9jJsm8YrQJHfqRULpwl1dQ4=; b=hSEu62ah4FdTP3Pi/y+fEARhi2RYbCkpsDhvbfmIpvnr3/u3UBfSt5rtNKO9ZS1laf t9qkMA6s4MLufKMwZ+u8WS+QcIezi7zCaDf1eDghiOZYvIRuYBXXmaCRkQV9dUI6tcy1 P/cUl24Im9d9rFnsq7uECEjnuNr21XYQLntwvJnU3nDmXOdDbuc+zAwORhBlOnk61ZIB rUyNMSqi/yfPEnkgkT4ySP13XajWe/IIn7Yblw8wRJEo8jnbxQWRgUxFnaXzY35HUU/m uA5reckLuAh295IQnF0i6LWHme8FEFTH1gp0OAssB2l/tBafIlpSZMLpYrTrpPBBEWTd 2E9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=M5UZkVKY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id gv17-20020a17090b11d100b00273f1cd73b2si8682246pjb.75.2023.11.06.13.36.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 13:36:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=M5UZkVKY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 22A2880C7760; Mon, 6 Nov 2023 13:35:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233168AbjKFVfq (ORCPT + 99 others); Mon, 6 Nov 2023 16:35:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233178AbjKFVfo (ORCPT ); Mon, 6 Nov 2023 16:35:44 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCFED6E for ; Mon, 6 Nov 2023 13:35:41 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64DBBC433C8; Mon, 6 Nov 2023 21:35:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1699306541; bh=lTIM326A7Yokevf2PJD10uUF9e1Zw3cztxxrSrh7tZU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=M5UZkVKYxz+TPfHd6fnfWKrRIhczvcLqPBbG2OJfZtHgf1fjYCEDGoiGOJdqiGA/S fm62Hoe9EvT9DOzQdg69ymdBh5KDAzbERqYx8QmPd+aO/HWrne241gotVaFrc6UW1P cG9tHbIh7bcHeMf25Ga8uI3AqHcdTTlrisz/poGs= Date: Mon, 6 Nov 2023 13:35:40 -0800 From: Andrew Morton To: Zhiguo Jiang Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, opensource.kernel@vivo.com Subject: Re: [PATCH v2 1/2] mm:vmscan: the dirty folio in folio list skip unmap Message-Id: <20231106133540.0d985052fa9137136593cbde@linux-foundation.org> In-Reply-To: <20231019134211.329-2-justinjiang@vivo.com> References: <20231019134211.329-1-justinjiang@vivo.com> <20231019134211.329-2-justinjiang@vivo.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 06 Nov 2023 13:35:59 -0800 (PST) On Thu, 19 Oct 2023 21:42:10 +0800 Zhiguo Jiang wrote: > In the shrink_folio_list() the sources of the file dirty folio include > two ways below: > 1. The dirty folio is from the incoming parameter folio_list, > which is the inactive file lru. > 2. The dirty folio is from the PTE dirty bit transferred by > the try_to_unmap(). > > For the first source of the dirty folio, if the dirty folio does not > support pageout, the dirty folio can skip unmap in advance to reduce > recyling time. > This patch does an amount of code movement and it implements a functional change. Is it possible to split these? The first patch moves code around but has no runtime effect, the second patch implements the functional change. Also, the patch doesn't apply to current code so please redo it against Linus's latest tree? Thanks.