Skip to content

Commit

Permalink
xfs: create symlink proc/fs/xfs/stat to sys/fs/xfs/stats
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Eric Sandeen <[email protected]>
Signed-off-by: Dave Chinner <[email protected]>
  • Loading branch information
Bill O'Donnell authored and dchinner committed Oct 11, 2015
1 parent bb230c1 commit 32f0ea0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/xfs/xfs_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,10 @@ xfs_init_procfs(void)
if (!proc_mkdir("fs/xfs", NULL))
goto out;

if (!proc_create("fs/xfs/stat", 0, NULL,
&xfs_stat_proc_fops))
if (!proc_symlink("fs/xfs/stat", NULL,
"/sys/fs/xfs/stats/stats"))
goto out_remove_xfs_dir;

#ifdef CONFIG_XFS_QUOTA
if (!proc_create("fs/xfs/xqmstat", 0, NULL,
&xqmstat_proc_fops))
Expand Down

0 comments on commit 32f0ea0

Please sign in to comment.