From: Jan Kara Date: Wed, 29 Mar 2023 09:45:00 +0000 (+0200) Subject: quota: Use register_sysctl_init() for registering fs_dqstats_table X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9e1fb91bcbad7e329a93f66c150e8bb607b418f7;p=linux.git 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 Signed-off-by: Jan Kara --- diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 78c9977549efa..ffd40dc3e4e99 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,