From 9e1fb91bcbad7e329a93f66c150e8bb607b418f7 Mon Sep 17 00:00:00 2001 From: Jan Kara Date: Wed, 29 Mar 2023 11:45:00 +0200 Subject: [PATCH] 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 --- fs/quota/dquot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index 78c9977..ffd40dc 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, -- 2.7.4