From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-177.mta1.migadu.com (out-177.mta1.migadu.com [95.215.58.177]) (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 E6FEA33F581 for ; Mon, 2 Mar 2026 21:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772487910; cv=none; b=rxHcK4LNVA9GvYVjz+lnKy2JNOj1zkQc83AbGomtC0RliFIicPItF9I/6lFcB4PO20e+gnVXIip8+2vCmWB9Xw2BeXoPxSa6U47y2UenFIK0HPDlBhR997zbedgyGbPzHrTcTV7PYPirOgkmTXnKOxvGJ9FvKV7tvg9CdvTKlIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772487910; c=relaxed/simple; bh=F0dp5tqAmfG0MSNOjffUt9Pkoo+3USR7LnsV3idwJAw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XZDavKYdqq3bxyhDV93W2cSQyWMOscKP8z7sMV/2zpsP/zsRlfhlN6GpeKyi0Kc1ENV79YkJSmXWeC2UBvF52rH0pdHqRfwwVcJKzS192/X5LuThOq0j7a3q6ZoqerCw+nVEiPShcDY7zuMTIc3uF6C/Ujhw2JL7ey87JgWCKCc= 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=SCHqyeE/; arc=none smtp.client-ip=95.215.58.177 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="SCHqyeE/" Date: Mon, 2 Mar 2026 13:44:59 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1772487907; 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: in-reply-to:in-reply-to:references:references; bh=V4WxUh5g8+OtuoKfnpyLcdZy04/Kd4IDvozZUdWIikk=; b=SCHqyeE/tPyvzoA1SLlP54HthcnNg/c9rnu6gHn/zlNneyp3iBrxobnchIsl5sb74vIB7f hixR2qFiJZpsaJtJZAycbSVZ4/n/CzS2biJFFQVpcw2ralrTz09yoI1ps0uTvAhJav4soh FdkBtS+4FymocN6MldxhT1o0rCwskBs= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Shakeel Butt To: Johannes Weiner Cc: Andrew Morton , Hao Li , Michal Hocko , Roman Gushchin , Vlastimil Babka , Harry Yoo , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Weiner Subject: Re: [PATCH 2/5] mm: memcg: simplify objcg charge size and stock remainder math Message-ID: References: <20260302195305.620713-1-hannes@cmpxchg.org> <20260302195305.620713-3-hannes@cmpxchg.org> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260302195305.620713-3-hannes@cmpxchg.org> X-Migadu-Flow: FLOW_OUT On Mon, Mar 02, 2026 at 02:50:15PM -0500, Johannes Weiner wrote: > From: Johannes Weiner > > Use PAGE_ALIGN() and a more natural cache remainder calculation. > > Signed-off-by: Johannes Weiner Acked-by: Shakeel Butt