X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmgs%2Flproc_mgs.c;h=fad189e4da285e2029c4c24c51308502c73cf8a2;hp=5833a1364da80591913a429e971770201525c6a9;hb=725b8599bbf4c98173cc049d8a73920a31287d5c;hpb=e3a7c58aebafce40323db54bf6056029e5af4a70 diff --git a/lustre/mgs/lproc_mgs.c b/lustre/mgs/lproc_mgs.c index 5833a13..fad189e 100644 --- a/lustre/mgs/lproc_mgs.c +++ b/lustre/mgs/lproc_mgs.c @@ -48,13 +48,14 @@ static int lprocfs_mgs_rd_mntdev(char *page, char **start, off_t off, int count, int *eof, void *data) { - struct obd_device* obd = (struct obd_device *)data; + struct obd_device *obd = (struct obd_device *)data; - LASSERT(obd != NULL); - LASSERT(obd->u.mgs.mgs_vfsmnt->mnt_devname); - *eof = 1; + LASSERT(obd != NULL); + LASSERT(mnt_get_devname(obd->u.mgs.mgs_vfsmnt)); + *eof = 1; - return snprintf(page, count, "%s\n",obd->u.mgs.mgs_vfsmnt->mnt_devname); + return snprintf(page, count, "%s\n", + mnt_get_devname(obd->u.mgs.mgs_vfsmnt)); } static int mgs_fs_seq_show(struct seq_file *seq, void *v)