summaryrefslogtreecommitdiffstats
path: root/fs/proc_namespace.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-12-08 20:51:13 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-01-06 23:16:54 -0500
commit64132379d509184425672e0dce1ac0a031e3f2a5 (patch)
tree2b7191e0e37bf061b2000935c7cf78e6fb1f3c95 /fs/proc_namespace.c
parentcdcf116d44e78c7216ba9f8be9af1cdfca7af728 (diff)
vfs: switch ->show_stats to struct dentry *
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc_namespace.c')
-rw-r--r--fs/proc_namespace.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c
index 9dcd9543ca1..61a09a6364b 100644
--- a/fs/proc_namespace.c
+++ b/fs/proc_namespace.c
@@ -183,12 +183,13 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt)
{
struct mount *r = real_mount(mnt);
struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt };
+ struct super_block *sb = mnt_path.dentry->d_sb;
int err = 0;
/* device */
- if (mnt->mnt_sb->s_op->show_devname) {
+ if (sb->s_op->show_devname) {
seq_puts(m, "device ");
- err = mnt->mnt_sb->s_op->show_devname(m, mnt);
+ err = sb->s_op->show_devname(m, mnt);
} else {
if (r->mnt_devname) {
seq_puts(m, "device ");
@@ -204,13 +205,13 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt)
/* file system type */
seq_puts(m, "with fstype ");
- show_type(m, mnt->mnt_sb);
+ show_type(m, sb);
/* optional statistics */
- if (mnt->mnt_sb->s_op->show_stats) {
+ if (sb->s_op->show_stats) {
seq_putc(m, ' ');
if (!err)
- err = mnt->mnt_sb->s_op->show_stats(m, mnt);
+ err = sb->s_op->show_stats(m, mnt_path.dentry);
}
seq_putc(m, '\n');