]> git.karo-electronics.de Git - linux-beck.git/commitdiff
xfs: create symlink proc/fs/xfs/stat to sys/fs/xfs/stats
authorBill O'Donnell <billodo@redhat.com>
Sun, 11 Oct 2015 18:16:45 +0000 (05:16 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 11 Oct 2015 18:16:45 +0000 (05:16 +1100)
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>
fs/xfs/xfs_stats.c

index e19b84a327d117ad9cc45d514955af49b7807da0..e6efebbdb7932f7b757f889f5908a7afc8ac51b6 100644 (file)
@@ -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))