| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 2/7] xfs: create symlink proc/fs/xfs/stat to sys/fs/xfs/stats |
| From: | "Bill O'Donnell" <billodo@xxxxxxxxxx> |
| Date: | Fri, 25 Sep 2015 18:22:55 -0500 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <1443223380-18870-1-git-send-email-billodo@xxxxxxxxxx> |
| References: | <1443223380-18870-1-git-send-email-billodo@xxxxxxxxxx> |
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@xxxxxxxxxx>
---
fs/xfs/xfs_stats.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/fs/xfs/xfs_stats.c b/fs/xfs/xfs_stats.c
index 6008e25..a9f05de 100644
--- a/fs/xfs/xfs_stats.c
+++ b/fs/xfs/xfs_stats.c
@@ -244,9 +244,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))
--
2.4.3
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 4/7] xfs: consolidate sysfs ops (dbg, stats, log), Bill O'Donnell |
|---|---|
| Next by Date: | [PATCH 3/7] xfs: remove unused procfs code, Bill O'Donnell |
| Previous by Thread: | [PATCH 4/7] xfs: consolidate sysfs ops (dbg, stats, log), Bill O'Donnell |
| Next by Thread: | [PATCH 3/7] xfs: remove unused procfs code, Bill O'Donnell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |