mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
xfs: create symlink proc/fs/xfs/stat to sys/fs/xfs/stats
As a part of the work to move xfs global stats from procfs to sysfs, this patch creates the symlink from proc/fs/xfs/stat to sys/fs/xfs/stats. Signed-off-by: Bill O'Donnell <billodo@redhat.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
bb230c1247
commit
32f0ea0521
@ -243,9 +243,10 @@ xfs_init_procfs(void)
|
|||||||
if (!proc_mkdir("fs/xfs", NULL))
|
if (!proc_mkdir("fs/xfs", NULL))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
if (!proc_create("fs/xfs/stat", 0, NULL,
|
if (!proc_symlink("fs/xfs/stat", NULL,
|
||||||
&xfs_stat_proc_fops))
|
"/sys/fs/xfs/stats/stats"))
|
||||||
goto out_remove_xfs_dir;
|
goto out_remove_xfs_dir;
|
||||||
|
|
||||||
#ifdef CONFIG_XFS_QUOTA
|
#ifdef CONFIG_XFS_QUOTA
|
||||||
if (!proc_create("fs/xfs/xqmstat", 0, NULL,
|
if (!proc_create("fs/xfs/xqmstat", 0, NULL,
|
||||||
&xqmstat_proc_fops))
|
&xqmstat_proc_fops))
|
||||||
|
Loading…
Reference in New Issue
Block a user