From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) (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 B78503BB9F3 for ; Tue, 21 Jul 2026 08:34:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784622884; cv=none; b=fVC/ZvxtLqjxre8T185cExtGP8OwETKf4zlr9OotdOYYamw1Q/uBpDGz3mXDLOTul8pWhVeoSt9PvkI0MmRXhVuq4/Jlaqi+NILPjh7lx4jWElnaYHMt44kbwZHGKbwpjdD5wAPDxwRFzBfTJjW7hmsq2K5d83VTZB/52OAxdkM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784622884; c=relaxed/simple; bh=K0aQ0a8zhmzIGGSX+aU0LBelD81O27q52gOp6ncHWEQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=re0aGQxnR7ydd2IIVNAfTnQEBrCS7l/vBdqsncFK04Bfbl3WXsrSyS+UcsUNuLAG+xDe9LxUFYWFpxyLFC6lCR9sc5RVV9uY4gqYIl9xCtaz/8HRpn87hhFB8pTyOv0fRrCsFdhezQbvfjL6+ZddjLr64IE6OkmVhanJIZeUXpE= 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=Gq8V0Hwv; arc=none smtp.client-ip=95.215.58.173 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="Gq8V0Hwv" 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=1784622879; 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=VcPnHwDAPib0WA2zAYNLlerlBN1VioKSLdCpPQXRhKM=; b=Gq8V0HwvzzZWAYhs/HRxKDcFJCIaSNFYKya1o4livmsXdbqN/XBqBQkhX/XluYT8pjsLOt a34clohM0mE9pwZa+cp3rxPHyCqgpDEtnvCQycbeyw4PvJWO8ku5brz8F9SxGiIgkb0dm8 tbEQDzp7xHsdj7aZsp26M8YZVeA7E7c= From: Qi Zheng To: hughd@google.com, baolin.wang@linux.alibaba.com, akpm@linux-foundation.org, usama.arif@linux.dev Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: [PATCH v2 0/2] make unused huge shrinker memcg aware Date: Tue, 21 Jul 2026 16:34:10 +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 Changes in v2: - temporarily add the dependent patch from Usama to the series for review convenience - remove shrinklist_scan and shrinklist_isolated from struct shmem_inode_info, and re-implement the logic by resuing the same info->shrinklist (suggested by Baolin) - add more comments (suggested by Andrew) - fix missing initialization of info->shrinklist_memcg (pointed by sashiko) - rebase onto the next-20260717 Qi Zheng (1): mm: shmem: make unused huge shrinker memcg aware Usama Arif (1): fs: push nr_cached_objects memcg gating into individual filesystems fs/btrfs/super.c | 10 + fs/super.c | 19 +- include/linux/memcontrol.h | 21 +++ include/linux/shmem_fs.h | 12 +- mm/shmem.c | 370 ++++++++++++++++++++++++++++--------- 5 files changed, 328 insertions(+), 104 deletions(-) -- 2.54.0