From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-180.mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.180]) (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 2A0AC1FC7C5 for ; Mon, 3 Aug 2026 08:46:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785746816; cv=none; b=F2BnyHN0RRwvADm+C1WLmDhZ+QQl2GREx+JwiPf821yGyf5NUTY47lDXcN9MHNqCDhsbA8Q38rYsntSfL3FNAuWrE3XkaJImNvpkplhfi2+qPP8XXDU5mUwphRjVrN26nEjjtS1jNTwld34uakSAnST2EOmg3FLt/OYkJ/ve7IM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785746816; c=relaxed/simple; bh=m6H1HMiWMyYATupGWgi9CLjlk2GanfIt3/yu6N5f/9I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=teJHQOtCjJRsDk//Jj/CW6GJXGQJBogJOh3d1z8ULEqFch/1xj+2Pw2cdL8BDM8hYIQcG3tM/iv9xHKbIz6JWvlUzafDV+yJVwlHykSm3Eax6irTr20iMKC0vs5c4q9eaNIn248P2g4UESNOtwRXY44iVlzO2LM6WheWY3fXW/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=szNVJU3Q; arc=none smtp.client-ip=91.218.175.180 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="szNVJU3Q" 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=1785746812; 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=AC19/2AL/KFMxTlMrBvCFujzA0iALQPona/ztJtl5ZQ=; b=szNVJU3QmtDyEiMQMQPbCFW2OpBay1hlcPikRZJKDTVoWDkUaKgqr1sgMs6bzUvJQzx27S A/70YGaMtlmLPQp+dAuDALr5iOx6w9ROqKR5BmoeoJex+Xp8IigyPwKz8ymi04vWC2MGPs 7HhtB+Plqzeq/eRtviwGWDCWCukucQk= From: Qi Zheng To: hughd@google.com, baolin.wang@linux.alibaba.com, usama.arif@linux.dev, brauner@kernel.org, akpm@linux-foundation.org, david@kernel.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qi Zheng Subject: [PATCH v3 0/3] make unused huge shrinker memcg aware Date: Mon, 3 Aug 2026 16:46:32 +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 v3: - add a fix patch to fix missed removal of super_fs_objects_eligible() - move the original shrinklist addition logic after all checks are completed, and split it into a separate patch. (suggested by Baolin) - simplify the shmem_unused_huge_requeue() (suggested by Baolin) - keep the move_back label in shmem_unused_huge_shrink() (suggested by Baolin) - rebase onto the next-20260731 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 (3): fs: fix missed removal of super_fs_objects_eligible() mm: shmem: move unused huge shrinklist queuing past the truncation check mm: shmem: make unused huge shrinker memcg aware fs/super.c | 18 +- include/linux/shmem_fs.h | 12 +- mm/shmem.c | 361 +++++++++++++++++++++++++++++---------- 3 files changed, 283 insertions(+), 108 deletions(-) -- 2.54.0