From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A0A302765C4 for ; Tue, 24 Mar 2026 11:57:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774353456; cv=none; b=nY7zVlnouWMZocEAQYsePXFDqTNYuKvObSdGLXEbCOD8FjVXndhoKFW9oCZpoi1jICLD1Mp3RRChIBZytX8JEX8KkqWw2A1ypJ+tJRBQHTbfh6aYC/78lsHAQOVUYfpMUtSyjmQkVUkVqkYgRTckZcBWrb9pHL/Q401FiO3f7iQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774353456; c=relaxed/simple; bh=Yy6gXmBkDIayNYElsmxqEPYfSjNDuBzm4LVjiMDEWXo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UO/3JXfTegQQmqHonBRSLEUYAPLaPNFvBpiOibsKzXCDlKCY2lHtWi/S54NoLK9QGx5WRSjUYr/QhGHcaREmTqaiDZ7kdzGBEGLGC98/7hB+cRzNIKGr5sqtePaMPHAQyMwDkzIL1eQw2q2ZtkaWOhS+F14CV4GEqu6Huzz3bvk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mSipaLGO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mSipaLGO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E6C2C19424; Tue, 24 Mar 2026 11:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774353456; bh=Yy6gXmBkDIayNYElsmxqEPYfSjNDuBzm4LVjiMDEWXo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mSipaLGOC8QG08/lBl1D7TYVOsjAMRyeheY/JeHpMP2a0vuoc+frReTirRTH5CJHk KhVOa7i1SLeSnyNhmFQqDJqBzJyvIwnAGkSLjtpfeE7PFBlgaxK4gxh+DDariYAcB7 rxXRfW8AAxcQ25IrvXoAicSqWr/1K6YG/26UAHIdRObpwZHmPJ/mGChF0oeBCgL2yH VJbIaZp5J2L4cq4ISQwit6ioB43paKD/xnTAgH2/gTm45JBZZqyWcTQPTp+cJFRzRp 6u4XoFpfGDs7yFm0fIwB+T9ITMxItBULGRYmq7hpXHhfd83KusuBrm72RIo23e4Y9S TITv9mIuse3gw== Date: Tue, 24 Mar 2026 11:57:33 +0000 From: "Lorenzo Stoakes (Oracle)" To: Qi Zheng Cc: hannes@cmpxchg.org, hughd@google.com, mhocko@suse.com, roman.gushchin@linux.dev, shakeel.butt@linux.dev, muchun.song@linux.dev, david@kernel.org, ziy@nvidia.com, harry.yoo@oracle.com, yosry.ahmed@linux.dev, imran.f.khan@oracle.com, kamalesh.babulal@oracle.com, axelrasmussen@google.com, yuanchu@google.com, weixugc@google.com, chenridong@huaweicloud.com, mkoutny@suse.com, akpm@linux-foundation.org, hamzamahfooz@linux.microsoft.com, apais@linux.microsoft.com, lance.yang@linux.dev, bhe@redhat.com, usamaarif642@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: Re: [PATCH 0/3] correct the parameter type of some mm functions Message-ID: References: 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: -cc old mail (just a gentle nudge to send stuff to ljs@kernel.org instead thanks :) On Tue, Mar 24, 2026 at 07:31:25PM +0800, Qi Zheng wrote: > From: Qi Zheng > > Hi all, > > As Harry Yoo pointed out [1], in the case of reparenting LRU folios, the value > passed to functions such as __mod_memcg{_lruvec}_state() may exceed the upper > limit of int, so this series aims to correct the parameter type of these > functions. > > This series is based on the next-20260323. > > Comments and suggestions are welcome! > > Thanks, > Qi > > [1]. https://lore.kernel.org/all/acDxaEgnqPI-Z4be@hyeyoo/ > > Qi Zheng (3): > mm: memcontrol: correct the type of stats_updates to unsigned long > mm: memcontrol: correct the parameter type of > __mod_memcg{_lruvec}_state() > mm: memcontrol: correct the nr_pages parameter type of > mem_cgroup_update_lru_size() > > include/linux/memcontrol.h | 2 +- > include/trace/events/memcg.h | 10 +++++----- > mm/memcontrol.c | 28 ++++++++++++++-------------- > 3 files changed, 20 insertions(+), 20 deletions(-) > > -- > 2.20.1 >