From nobody Mon Feb 9 07:20:53 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3DBFC433FE for ; Fri, 30 Sep 2022 13:59:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231522AbiI3N7e (ORCPT ); Fri, 30 Sep 2022 09:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbiI3N7b (ORCPT ); Fri, 30 Sep 2022 09:59:31 -0400 Received: from 12.mo584.mail-out.ovh.net (12.mo584.mail-out.ovh.net [178.33.104.253]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D3115C5B0 for ; Fri, 30 Sep 2022 06:59:29 -0700 (PDT) Received: from player157.ha.ovh.net (unknown [10.110.115.139]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id E6687231CE for ; Fri, 30 Sep 2022 10:30:19 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player157.ha.ovh.net (Postfix) with ESMTPSA id 84BE82F30298E; Fri, 30 Sep 2022 10:30:14 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-104R005c2f86f72-bec0-41b2-8cac-1b1f326278f0, C05B2F2BD13FA39C9993548B485976379164E02D) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Stephen Kitt Subject: [PATCH v2 1/5] docs: sysctl/fs: remove references to inode-max Date: Fri, 30 Sep 2022 12:29:33 +0200 Message-Id: <20220930102937.135841-2-steve@sk2.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220930102937.135841-1-steve@sk2.org> References: <20220930102937.135841-1-steve@sk2.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Ovh-Tracer-Id: 14211953050474415750 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehvddgvdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepgefhhfeliefghfetieffleevfefhieduheektdeghfegvdelfffgjefgtdevieegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrudehjedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehkeeg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" inode-max was removed in 2.3.20pre1, remove references to it in the sysctl documentation. Signed-off-by: Stephen Kitt --- Documentation/admin-guide/sysctl/fs.rst | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Documentation/admin-guide/sysctl/fs.rst b/Documentation/admin-= guide/sysctl/fs.rst index 2a501c9ddc55..54130ae33df8 100644 --- a/Documentation/admin-guide/sysctl/fs.rst +++ b/Documentation/admin-guide/sysctl/fs.rst @@ -33,7 +33,6 @@ Currently, these files are in /proc/sys/fs: - dquot-nr - file-max - file-nr -- inode-max - inode-nr - inode-state - nr_open @@ -136,18 +135,12 @@ enough for most machines. Actual limit depends on RLI= MIT_NOFILE resource limit. =20 =20 -inode-max, inode-nr & inode-state ---------------------------------- +inode-nr & inode-state +---------------------- =20 As with file handles, the kernel allocates the inode structures dynamically, but can't free them yet. =20 -The value in inode-max denotes the maximum number of inode -handlers. This value should be 3-4 times larger than the value -in file-max, since stdin, stdout and network sockets also -need an inode struct to handle them. When you regularly run -out of inodes, you need to increase this value. - The file inode-nr contains the first two items from inode-state, so we'll skip to that file... =20 @@ -156,11 +149,10 @@ The actual numbers are, in order of appearance, nr_in= odes, nr_free_inodes and preshrink. =20 Nr_inodes stands for the number of inodes the system has -allocated, this can be slightly more than inode-max because -Linux allocates them one pageful at a time. +allocated. =20 Nr_free_inodes represents the number of free inodes (?) and -preshrink is nonzero when the nr_inodes > inode-max and the +preshrink is nonzero when the system needs to prune the inode list instead of allocating more. =20 --=20 2.31.1