From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (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 E271A21CA13 for ; Wed, 15 Apr 2026 05:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776232466; cv=none; b=ql9Odb3ft+qcm+qHQ1rWqPruqdfXPZy47AAhpjHAL398B2SjIR40VvjOUKN0r9HFizb+UOaAg+4ii9TiG3indqMXyWrF1zKMcNrfASq2klRqYPgCwUdSG1C3QnrzE880yYxrvws0nydZLKXJIn9vRnHzcLFUXqFA/iBlrdmo7Co= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776232466; c=relaxed/simple; bh=LzvDpkeDLCuvBIy/SUVHP7Js6gYkW+Yn82F7RF6cH4Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=k5ru1YGFMP9Bb4rM9kmKLxgMGKC/QTH3hrKnUaBJDCCRdAkOlwrNxxFEbBIRpRvsGBNsi4tZbRasgBKwp4JsCZZsDJI0xvS1aUfSIOFdJMZeiijosK5Zb7xPbdVfSkbYNPoap2Td3mT6SuLQg5plpRRoAe9FFbDwYjAphf7Tj1k= 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=eXL/xuVz; arc=none smtp.client-ip=91.218.175.182 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="eXL/xuVz" Message-ID: <170b0c6c-387f-4317-967d-2cf02e86621f@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1776232462; 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=goM4TbNKzPkSw4+mRWT3apYDp0FWr3JgrOICL0Dn9Zk=; b=eXL/xuVzwxTkYb1o25oNEMo/S0RPJLv4k4Esio9gAu3LbRFeyXiS/s5zgPyFik5yIdbFuI 4cicOycxb+L1gU4PLKMKNiMf18lpDbD62v2bcVJYdgsoj17b4s7j3H2zM+iSJ6iyrF/yl6 3hmgbuqylqbpFLpo3IqfVLezf/YJnnw= Date: Wed, 15 Apr 2026 13:54:16 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 0/4] mm/vmstat: simplify folio stat APIs To: Matthew Wilcox Cc: Andrew Morton , linux-mm@kvack.org, Ye Liu , Vlastimil Babka , linux-kernel@vger.kernel.org References: <20260414091527.2970844-1-ye.liu@linux.dev> <6c0ab55e-a687-4ad1-b18e-b4ca97305a44@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 11:59, Matthew Wilcox 写道: > On Wed, Apr 15, 2026 at 08:47:24AM +0800, Ye Liu wrote: >> Thank you for your feedback, Matthew. I acknowledge that this change may >> introduce additional calls to folio_nr_pages() in some cases where the >> value was previously computed once and reused. However, the new >> add_folio/sub_folio functions provide clearer semantics, explicitly >> indicating that we're accounting for the entire folio rather than >> potentially partial pages. The overhead of recomputing folio_nr_pages() >> is minimal in most scenarios, and the improved readability and reduced >> argument passing outweigh this concern. > > I disagree. Thanks for the direct feedback. -- Thanks, Ye Liu