diff options
author | Jan Kara <jack@suse.cz> | 2023-03-29 11:45:00 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2023-03-29 11:45:00 +0200 |
commit | 9e1fb91bcbad7e329a93f66c150e8bb607b418f7 (patch) | |
tree | aeddf80c7846258fbcaac50234aac449d17a58ac | |
parent | 8ace883815a2a9f5ef638807f6133c1720ac325a (diff) | |
download | lwn-9e1fb91bcbad7e329a93f66c150e8bb607b418f7.tar.gz lwn-9e1fb91bcbad7e329a93f66c150e8bb607b418f7.zip |
quota: Use register_sysctl_init() for registering fs_dqstats_table
register_sysctl_init() also prints information that may be useful for
further debugging when we fail to register sysctl table. Use it when
registering fs_dqstats_table.
Suggested-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | fs/quota/dquot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 78c9977549ef..ffd40dc3e4e9 100644 --- a/fs/quota/dquot.c +++ b/fs/quota/dquot.c @@ -2953,7 +2953,7 @@ static int __init dquot_init(void) printk(KERN_NOTICE "VFS: Disk quotas %s\n", __DQUOT_VERSION__); - register_sysctl("fs/quota", fs_dqstats_table); + register_sysctl_init("fs/quota", fs_dqstats_table); dquot_cachep = kmem_cache_create("dquot", sizeof(struct dquot), sizeof(unsigned long) * 4, |