Skip to content

Commit 77cff74

Browse files
rddunlapopsiff
authored andcommitted
docs: admin-guide: sysctl: fix details of struct dentry_stat_t
mainline inclusion from mainline-v6.7-rc1 category: bugfix Commit c8c0c23 moved struct dentry_stat_t to fs/dcache.c but did not update its location in Documentation, so update that now. Also change each struct member from int to long as done in commit 3942c07. Fixes: c8c0c23 ("fs: move dcache sysctls to its own file") Fixes: 3942c07 ("fs: bump inode and dentry counters to long") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: linux-doc@vger.kernel.org Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Christian Brauner <brauner@kernel.org> Cc: linux-fsdevel@vger.kernel.org Cc: Luis Chamberlain <mcgrof@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Glauber Costa <glommer@openvz.org> Acked-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20230923195144.26043-1-rdunlap@infradead.org (cherry picked from commit 92224e8) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 25b5464 commit 77cff74

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • Documentation/admin-guide/sysctl

Documentation/admin-guide/sysctl/fs.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ pre-allocation or re-sizing of any kernel data structures.
4242
dentry-state
4343
------------
4444

45-
This file shows the values in ``struct dentry_stat``, as defined in
46-
``linux/include/linux/dcache.h``::
45+
This file shows the values in ``struct dentry_stat_t``, as defined in
46+
``fs/dcache.c``::
4747

4848
struct dentry_stat_t dentry_stat {
49-
int nr_dentry;
50-
int nr_unused;
51-
int age_limit; /* age in seconds */
52-
int want_pages; /* pages requested by system */
53-
int nr_negative; /* # of unused negative dentries */
54-
int dummy; /* Reserved for future use */
49+
long nr_dentry;
50+
long nr_unused;
51+
long age_limit; /* age in seconds */
52+
long want_pages; /* pages requested by system */
53+
long nr_negative; /* # of unused negative dentries */
54+
long dummy; /* Reserved for future use */
5555
};
5656

5757
Dentries are dynamically allocated and deallocated.

0 commit comments

Comments
 (0)