X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmds%2Flproc_mds.c;h=25ca6b674b64448129c038d21845bd29342917f4;hb=313da5b87dbb6db3b8d75b039fc10474d42ee22f;hp=102e79099bf83678ef00aa16d2cc35e50351f9e4;hpb=eb7c28ff977f4e0a280558aa74e23f2a9ab0ea0c;p=fs%2Flustre-release.git diff --git a/lustre/mds/lproc_mds.c b/lustre/mds/lproc_mds.c index 102e790..25ca6b6 100644 --- a/lustre/mds/lproc_mds.c +++ b/lustre/mds/lproc_mds.c @@ -43,18 +43,6 @@ #include "mds_internal.h" #ifdef LPROCFS -static int lprocfs_mds_rd_mntdev(char *page, char **start, off_t off, int count, - int *eof, void *data) -{ - struct obd_device* obd = (struct obd_device *)data; - - LASSERT(obd != NULL); - LASSERT(obd->u.obt.obt_vfsmnt->mnt_devname); - *eof = 1; - - return snprintf(page, count, "%s\n",obd->u.obt.obt_vfsmnt->mnt_devname); -} - static int lprocfs_mds_rd_evictostnids(char *page, char **start, off_t off, int count, int *eof, void *data) { @@ -173,7 +161,7 @@ struct lprocfs_vars lprocfs_mds_obd_vars[] = { { "filestotal", lprocfs_rd_filestotal, 0, 0 }, { "filesfree", lprocfs_rd_filesfree, 0, 0 }, { "fstype", lprocfs_rd_fstype, 0, 0 }, - { "mntdev", lprocfs_mds_rd_mntdev, 0, 0 }, + { "mntdev", lprocfs_obd_rd_mntdev, 0, 0 }, { "recovery_status", lprocfs_obd_rd_recovery_status, 0, 0 }, { "hash_stats", lprocfs_obd_rd_hash, 0, 0 }, { "evict_client", 0, lprocfs_mds_wr_evict_client, 0 },