From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-179.mta0.migadu.com (out-179.mta0.migadu.com [91.218.175.179]) (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 0C054266B72 for ; Wed, 15 Apr 2026 00:48:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776214128; cv=none; b=rj8r+Cnv+l9pQ1wol9LQ7UUfuKQx6a2rKD3XfdAncRoxjGPkuo2aBGoozzjEQsP+6Sj6vUhj+MeNy0YKb5vUIxZ9Clc8LCnh/URGOdJGIg8wsMcwszu7vPWDwd2RTjNafvxQfiECxVR9QIH58u2Ene7K2hKb5FieXQSe7jO8na4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776214128; c=relaxed/simple; bh=/9OMEHbVj5Watn1GKdn2+Z3KYWZeTuxWsegikZA1a/Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ToJlZEOAVi30Rd98AifQ6SyUJlscUxsss8HnOdbKApw4Btoh+DiiZdVUJtI/QBUb20Lvdu3Cf6QKLpdhInLKfa+KiAbCxWHF7drSXveSa8I2DH1Bhn3ZqQTbLsnpx+RIU2QN72x18Vwng2+4LXZeeohSY2cu8cKPT70w2/r1aVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=Wt9j8PlX; arc=none smtp.client-ip=91.218.175.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="Wt9j8PlX" Message-ID: <7388e265-ccb3-4938-90d0-4b503198ddd4@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1776214124; h=from:from: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=4dOLQgMFIc5WUqLkqCJZGmnuCCvn5m/W7yOiMCxXGac=; b=Wt9j8PlXjKFscfm8IaE/7fE32DTbPJEridqhLxVM6uhZW+xqalaHoT9Tt8/Vfn23ji9k45 CBYPlUoobc9vIvtFyDSUZ995PPzra2KnDqphha67t9ihj9dhj9KvKloVCF2praJbRY++id XxDS1vNDRy1nl3tFSewQ91fuGreoRaA= Date: Wed, 15 Apr 2026 08:48:30 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 1/4] mm/vmstat: use node_stat_add_folio/sub_folio for folio_nr_pages operations To: "David Hildenbrand (Arm)" , Trond Myklebust , Anna Schumaker , Andrew Morton , Vlastimil Babka , Lorenzo Stoakes , "Matthew Wilcox (Oracle)" , Chris Li , Kairui Song Cc: Ye Liu , Suren Baghdasaryan , Michal Hocko , Brendan Jackman , Johannes Weiner , Zi Yan , Jason Gunthorpe , John Hubbard , Peter Xu , Baolin Wang , "Liam R. Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Lance Yang , Matthew Brost , Joshua Hahn , Rakie Kim , Byungchul Park , Gregory Price , Ying Huang , Alistair Popple , Kemeng Shi , Nhat Pham , Baoquan He , Youngjun Park , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org References: <20260414091527.2970844-1-ye.liu@linux.dev> <20260414091527.2970844-2-ye.liu@linux.dev> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Ye Liu In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 在 2026/4/15 01:52, David Hildenbrand (Arm) 写道: > On 4/14/26 11:15, Ye Liu wrote: >> From: Ye Liu >> >> Replace node_stat_mod_folio() calls that pass folio_nr_pages(folio) or >> -folio_nr_pages(folio) as the third argument with the more concise >> node_stat_add_folio() and node_stat_sub_folio() functions respectively. >> >> This makes the code more readable and reduces the number of arguments >> passed to these functions. > > Also, that makes it clearer that we always account the full folio, never > parts of it. > Thank you, David, for your support. I agree that the new functions make the intent more explicit. -- Thanks, Ye Liu