Skip to content

Commit

Permalink
quota: Use register_sysctl_init() for registering fs_dqstats_table
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Kara committed Mar 29, 2023
1 parent 8ace883 commit 9e1fb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/quota/dquot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9e1fb91

Please sign in to comment.