Received: by 2002:a89:28c:0:b0:1ef:fe5e:92fe with SMTP id j12csp22316lqh; Sun, 17 Mar 2024 19:18:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWR3EEikLdkiy6hxV7og62SyVKRlM5PCuZiT+3NQ1gh3A0tZ6xUfADezIR/UYbnkQKHZoxFwO4m3sJVEgFtQRfNjpoI/oKsDLttKiFNZg== X-Google-Smtp-Source: AGHT+IHhiPYwiY58Fwi04XbX6OCTXhdh8hen/7zd3a6o2BJRHHmqi9SLcBT95DeTjZvCx9thJOcP X-Received: by 2002:a05:6830:16c1:b0:6e6:83cc:4609 with SMTP id l1-20020a05683016c100b006e683cc4609mr4146079otr.20.1710728311752; Sun, 17 Mar 2024 19:18:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710728311; cv=pass; d=google.com; s=arc-20160816; b=B97Oob53P8j++GWfyaLGh18cTShmxMo71srKjRs7jpxCcV8TvLEER5b+dyK5l7mkv+ tVmx1O+8yP+gJmhNoWrHgYqVzdgS+Mnk5mTNWpFd2PNX+BgmiPH4mJuWATTcM7BYQ54W yAWqCodn2+KqcUCaQ+xnRX9dARFWz8saxdlK6yLI7yssCdjV4cr4l+z9YpLb55QfbwSF cAQg7YWHHB5zcu4d9xVGSwDQFzoOxMb6dYMR0nnX5temjuhq47BYtPGK28HJXBkXg/w2 eNGnEthhi74tAz4jdkUDvMQalMXZH3OK/7HHxIfEklC688fhi4QmSRszD6w0nA9Qiek1 WmMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:dkim-signature; bh=gGLEoKWJmT1+xBK5u49KBD81j53Kl4NWlAVyvIPKFTs=; fh=6d9c8Q9CdR7kRzWfOb2Ziu0AN7lg6Chz/GWr9tYlRUQ=; b=KN4NgVY0SMHXgBLKyofSRglDe4sSLbc8YJnGAKWfmP/Wk3qA/o73iCCAogDJDWdcVf Vx+zzYecW7lV7/NPb3yQWwaTMaJLmgb37AgCxAqWbfAzyxe8RKdI17iJYcnn7SSG6aD2 SkfzRJdNSAKjQIT0ezOVLUY87DRilQGOBRPJ6JvxDyOhkW2oRLPoPTNkoBn3dAy8CDqZ pJmGaFbH7SR34tyBCy4ZMVthWR0SQU6/G/z4NKtdZmMyxd5mJlleF2r6oOtL9L9L8GoK bWiY4/KzwinjFCvUQc9W+UepRDDs2HVlYmce2tD5JM2dnaY9fci+9jL9oDqkSCMQO9d+ 9MYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Sug61auT; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-105652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h17-20020a632111000000b005dc4fbfb9acsi7073883pgh.583.2024.03.17.19.18.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 19:18:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Sug61auT; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-105652-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105652-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 65E97281AA2 for ; Mon, 18 Mar 2024 02:18:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01FF11E521; Mon, 18 Mar 2024 02:18:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Sug61auT" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0276D1DFF4 for ; Mon, 18 Mar 2024 02:18:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710728304; cv=none; b=MBG9MHdE8Gnl8y9rsqzvR/YYsyKSn+UfvY2SMKVdq1rD7iOqI3PggULrFZwJExayJkOVKWyqPjUVZtpgnkDMhgddlbqyOd5Mb+OGaTu+BE43nJOtxgjabPMZKvF328W1E3CSkCppt70xwbme/OgBXDEZNOq7YbmjKUEoZ0xtzz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710728304; c=relaxed/simple; bh=gGLEoKWJmT1+xBK5u49KBD81j53Kl4NWlAVyvIPKFTs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=bpKInOIAPSEEAXTkLNbsYYm9wGNfhU8KaNpqOA3I6coMlom2SbeMhl5hwuqHJbMB7/KzVjjLn22AmUcyJGJbKofVTob0JLx9gO0EgZVAEZlVgoEMnymP7sjlLQ0xSkRKPVPj0tZQy+tMx9kJumHzUfpJf09mqARQGd/abKP+smw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Sug61auT; arc=none smtp.client-ip=192.198.163.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710728301; x=1742264301; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version:content-transfer-encoding; bh=gGLEoKWJmT1+xBK5u49KBD81j53Kl4NWlAVyvIPKFTs=; b=Sug61auTHXlCDN6NQwncbZ4TSMRCzMrTnaINiHPnx4wIhf0sXX0g07lh tU45CmMigIhs++O+XpEScI6yo+tmmzYpNNzuDWIlVneTCkRBXlT0d/XFx Xh/wp506QmqOgVFOjhKD4O1LJmV5kuf8d1PlujgkDnURbGv5kvIRkNuke LOAFgnZ05ZzKQRQS2/A7vdZb8elQQECg+qGikiWPtAhAIVxAmDSEbf7LE AP68uKZsleVk25zCKqHN7KFOXVIQJjonNByL5oEBuWP2LF3+BgetQZyXA DC9W5vuDq/aBmszR7RhIwQm+kkcVJoAlkOUak/ZDlyDSCGtZJ8GwSWG5s A==; X-IronPort-AV: E=McAfee;i="6600,9927,11016"; a="16245601" X-IronPort-AV: E=Sophos;i="6.07,133,1708416000"; d="scan'208";a="16245601" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2024 19:18:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,133,1708416000"; d="scan'208";a="13285397" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2024 19:18:05 -0700 From: "Huang, Ying" To: Ryan Roberts Cc: David Hildenbrand , , , Yin Fengwei , Andrew Morton , "Matthew Wilcox" , Gao Xiang , Yu Zhao , Yang Shi , Michal Hocko , Kefeng Wang , Barry Song <21cnbao@gmail.com>, Chris Li Subject: Re: [PATCH v4 5/6] mm: vmscan: Avoid split during shrink_folio_list() In-Reply-To: <5cc147fa-492e-46c3-963d-2f6e6680dce9@arm.com> (Ryan Roberts's message of "Fri, 15 Mar 2024 11:38:37 +0000") References: <20240311150058.1122862-1-ryan.roberts@arm.com> <20240311150058.1122862-6-ryan.roberts@arm.com> <1db242d3-5ff1-4ef5-b20a-578a317fa859@arm.com> <5cc147fa-492e-46c3-963d-2f6e6680dce9@arm.com> Date: Mon, 18 Mar 2024 10:16:11 +0800 Message-ID: <878r2gwahg.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 UnlhbiBSb2JlcnRzIDxyeWFuLnJvYmVydHNAYXJtLmNvbT4gd3JpdGVzOg0KDQo+IEhpIFlpbiBG ZW5nd2VpLA0KPg0KPiBPbiAxNS8wMy8yMDI0IDExOjEyLCBEYXZpZCBIaWxkZW5icmFuZCB3cm90 ZToNCj4+IE9uIDE1LjAzLjI0IDExOjQ5LCBSeWFuIFJvYmVydHMgd3JvdGU6DQo+Pj4gT24gMTUv MDMvMjAyNCAxMDo0MywgRGF2aWQgSGlsZGVuYnJhbmQgd3JvdGU6DQo+Pj4+IE9uI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