Skip to content

Commit 9e1fb91

Browse files
committed
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 <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent 8ace883 commit 9e1fb91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/quota/dquot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2953,7 +2953,7 @@ static int __init dquot_init(void)
29532953

29542954
printk(KERN_NOTICE "VFS: Disk quotas %s\n", __DQUOT_VERSION__);
29552955

2956-
register_sysctl("fs/quota", fs_dqstats_table);
2956+
register_sysctl_init("fs/quota", fs_dqstats_table);
29572957

29582958
dquot_cachep = kmem_cache_create("dquot",
29592959
sizeof(struct dquot), sizeof(unsigned long) * 4,

0 commit comments

Comments
 (0)