Skip to content

misc filesystems: simplify sysctl registration

Luis Chamberlain linux-fsdevel linux-patches lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5fs/cachefiles: simplify one-level sysctl registration for cachefiles_sysctlsfs/cachefiles/error_inject.c+1 -100 replies
2/5devpts: simplify two-level sysctl registration for pty_kern_tablefs/devpts/inode.c+1 -191 reply
3/5quota: simplify two-level sysctl registration for fs_dqstats_tablefs/quota/dquot.c+1 -191 reply
4/5coda: simplify one-level sysctl registration for coda_tablefs/coda/sysctl.c+1 -101 reply
5/5ntfs: simplfy one-level sysctl registration for ntfs_sysctlsfs/ntfs/sysctl.c+1 -110 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchJan Harkes
1/5
2/5
3/5
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] misc filesystems: simplify sysctl registration

This simplifies syctl registration for a few misc filesystems according to our latest preference / guidance [0]. register_sysctl_table() incurs possible recursion and we can avoid that by dealing with flat directories with files in them, and having the subdirectories explicitly named with register_sysctl().

As we phase these callers out we can deprecate / remove register_sysctl_table() eventually.

If you're a maintainer feel free to pick up the patch or I'm also happy to take it through sysctl-next if you like. These don't create conflicts so there is no requirement they go throug sysclt-next at all.

I can pick up stragglers later.

[0] https://lore.kernel.org/all/[email protected]/T/#u

Luis Chamberlain (5):
fs/cachefiles: simplify one-level sysctl registration for
cachefiles_sysctls
devpts: simplify two-level sysctl registration for pty_kern_table
quota: simplify two-level sysctl registration for fs_dqstats_table
coda: simplify one-level sysctl registration for coda_table
ntfs: simplfy one-level sysctl registration for ntfs_sysctls

 fs/cachefiles/error_inject.c | 11 +----------
 fs/coda/sysctl.c             | 11 +----------
 fs/devpts/inode.c            | 20 +-------------------
 fs/ntfs/sysctl.c             | 12 +-----------
 fs/quota/dquot.c             | 20 +-------------------
 5 files changed, 5 insertions(+), 69 deletions(-)
Signature · 1 line
2.39.1