From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 ADE5033F581 for ; Mon, 2 Mar 2026 21:45:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772487920; cv=none; b=hatjuBtvTdMnSmQrgVGqPPpDPejaCuuwW/MXGa3sXwIHQUMhsQ02dG/izCVAjXxxSOfPz9iPRi6aDbazzVx1gaoTdGgQr4VGyo3905u0WuVHDwJxSZUiyfTI8wi80I6kNbk2ZeoMMBCdvF/PYvuvLtG/AHgroFmzwJjt9e57hlA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772487920; 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=DyjzloWtrPwdJ+3kpn5Kx3ofgKwOzX+VoFW8SgV3peaLQt5QF9X22tEnwWbVpZqFJOOc2Nn9Fd6U/AN7N5Ci86N25TLBeMp3VuJcSYXg/CnLm2Cp6+AsR4VKkvqB6Yz8ucbf9pJ7E3KC66P1/M2lV1Su3rgeBQh9lFtetkqYquQ= 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.174 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: linux-kernel@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