From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [62.89.141.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 4C0B6368958; Sat, 13 Jun 2026 05:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.89.141.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781327401; cv=none; b=OJJ1Km0PHG4FKp+NEY2ZiZ4aoCY5clFFAN5iAA8mGwT0t78Lh/ZquyDlosJA393ENanKQJzXD2ZU7f1T4/yUpuFTO0Wsh+I3LktHrMuk0pjatHCgQyUIt/xuzZeLnYUu3Pn8zdgS9tlCiBjx1ZTfCXH/n5YPVsY4YEA/xuvXVtY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781327401; c=relaxed/simple; bh=JfAEM3aUjV9uUMWZEiRcOGIAaKHG0E8Tz/cn04M7Nk4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZTNT/DFsqFjefgFTexQay2i/A5K68D/vylWPK7gObHIBy57OhJXyvqGG+n/MrQQ5BSztq9QMOkFnd9YMj6BVDBRDpQQMws80PKoRwGUi0gdItt5GOVayjQ1jHcMIq13xj1cKw9n5cDxHQ2UB2nEu81H6wVTs1QqiA1ek4ACSL1s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk; spf=none smtp.mailfrom=ftp.linux.org.uk; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b=Nos2WlW4; arc=none smtp.client-ip=62.89.141.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zeniv.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=ftp.linux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linux.org.uk header.i=@linux.org.uk header.b="Nos2WlW4" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=MZHJrCjRIjmtPr++aWYgFPkpaIkTjbAk/NLmMP37eM0=; b=Nos2WlW4avhTR8+u6YCwvP8d+s oR4tk0eASVMFp1JK9z90AsQc9iVzAv8lJ5g6Oq3V0cswhjNaSsW9udD7a0LaIfU79kijFMTINaMEw zzhY/WUIgnBhvlQgiIVZqOoJayPotZl3XKxvKhMKSlIuQWf2fMe0wR0jnBdUFSsrpmkHYzYVJfRAI 26CVSNTzEp4CASoQ1Zvj8vEFN8HewtZCSjEwHJnFUHdfUwgApdM88Cw4bjYogzaQ1m1CP/0zlSkqc cEi6Cdfuy0iAVYXFU44xyp59MDfZ1D+yM8lO0WInLgTOuZDlW34XCmuoZyv2pdoeEz/LCddifL12j IF5WbyQg==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.99.2 #2 (Red Hat Linux)) id 1wYGcz-00000003aTL-02av; Sat, 13 Jun 2026 05:09:53 +0000 From: Al Viro To: linux-mm@kvack.org Cc: Vlastimil Babka , Harry Yoo , linux-fsdevel@vger.kernel.org, Linus Torvalds , Christian Brauner , Jan Kara , Mateusz Guzik , linux-kernel@vger.kernel.org Subject: [RFC PATCH v3 08/10] make seq_file_cache statically allocated Date: Sat, 13 Jun 2026 06:09:49 +0100 Message-ID: <20260613050951.855141-9-viro@zeniv.linux.org.uk> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260613050951.855141-1-viro@zeniv.linux.org.uk> References: <20260611171425.1671254-1-viro@zeniv.linux.org.uk> <20260613050951.855141-1-viro@zeniv.linux.org.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Al Viro Signed-off-by: Al Viro --- fs/seq_file.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/seq_file.c b/fs/seq_file.c index 4745db2a34d1..7cb40ae83f9b 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@ -20,11 +20,13 @@ #include #include #include +#include #include #include -static struct kmem_cache *seq_file_cache __ro_after_init; +static struct kmem_cache_opaque __seq_file_cache; +#define seq_file_cache to_kmem_cache(&__seq_file_cache) static void seq_set_overflow(struct seq_file *m) { @@ -1140,5 +1142,5 @@ EXPORT_SYMBOL(seq_hlist_next_percpu); void __init seq_file_init(void) { - seq_file_cache = KMEM_CACHE(seq_file, SLAB_ACCOUNT|SLAB_PANIC); + KMEM_CACHE_SETUP(seq_file_cache, seq_file, SLAB_ACCOUNT|SLAB_PANIC); } -- 2.47.3