From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 686AA36654C for ; Tue, 24 Mar 2026 11:32:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774351929; cv=none; b=JuOQZPs/gJG1gwgJXTA+X5Cd2oqYgAiWHNcwwOv8tZx6ah7IrxFSyyToe5yRY9GI+/1JAiDWfhHo+/ItjTMHpiYU1MBEpV2dDWDrxnSGqGw2DOCaLtfgGfLdE8Rtpd9XwgjUVuptUxXO7NSlpN5OBaCeNlHZQjQ6fp6B8xCIUT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774351929; c=relaxed/simple; bh=DlF0K3FRfkgWSD62D4foWpfB8YLWMPEDN7bvEgFYKao=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MNKCSGcpjmBdhhFVn2bzc+/W3me1a4jNIEuWWesrt64Hr0HIohYYBIvUJoHIKUvHkhGskbU94lCD4JX5ipKsmFuJwhgCQVb/yy66CX3G4/DmnMLPds7e2CJRLwfr+NxnI3wPp0ED/fXrbeIyPHIejDXON0ZcY3MVlOuQv8BAb/o= 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=pseQP1QL; arc=none smtp.client-ip=91.218.175.170 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="pseQP1QL" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1774351926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OOD+Ib2r6PaW2m7qokKSBfl8HDaIHbYEUH90O4nwHjg=; b=pseQP1QLliNOxG7ecMtLJjShO3ZbGrk44jUXtPZGNfcBhIG05LAlJ9EzPuCClMmVuVfC1n 3zp+U7RnoMs/WbxtHj7+J8BSQfdX4Z+zzuN3r6NQ+mZB6C9Ep+ZMIQ4WKq8Kd1pPfeYlSg EthEye3hxkLry+uCilampI60k8PeVZA= From: Qi Zheng To: hannes@cmpxchg.org, hughd@google.com, mhocko@suse.com, roman.gushchin@linux.dev, shakeel.butt@linux.dev, muchun.song@linux.dev, david@kernel.org, lorenzo.stoakes@oracle.com, 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 Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: [PATCH 0/3] correct the parameter type of some mm functions Date: Tue, 24 Mar 2026 19:31:25 +0800 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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