diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-12-08 20:51:13 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-06 23:16:54 -0500 |
commit | 64132379d509184425672e0dce1ac0a031e3f2a5 (patch) | |
tree | 2b7191e0e37bf061b2000935c7cf78e6fb1f3c95 /fs/proc_namespace.c | |
parent | cdcf116d44e78c7216ba9f8be9af1cdfca7af728 (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.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c index 9dcd9543ca12..61a09a6364ba 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) | |||
183 | { | 183 | { |
184 | struct mount *r = real_mount(mnt); | 184 | struct mount *r = real_mount(mnt); |
185 | struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; | 185 | struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; |
186 | struct super_block *sb = mnt_path.dentry->d_sb; | ||
186 | int err = 0; | 187 | int err = 0; |
187 | 188 | ||
188 | /* device */ | 189 | /* device */ |
189 | if (mnt->mnt_sb->s_op->show_devname) { | 190 | if (sb->s_op->show_devname) { |
190 | seq_puts(m, "device "); | 191 | seq_puts(m, "device "); |
191 | err = mnt->mnt_sb->s_op->show_devname(m, mnt); | 192 | err = sb->s_op->show_devname(m, mnt); |
192 | } else { | 193 | } else { |
193 | if (r->mnt_devname) { | 194 | if (r->mnt_devname) { |
194 | seq_puts(m, "device "); | 195 | seq_puts(m, "device "); |
@@ -204,13 +205,13 @@ static int show_vfsstat(struct seq_file *m, struct vfsmount *mnt) | |||
204 | 205 | ||
205 | /* file system type */ | 206 | /* file system type */ |
206 | seq_puts(m, "with fstype "); | 207 | seq_puts(m, "with fstype "); |
207 | show_type(m, mnt->mnt_sb); | 208 | show_type(m, sb); |
208 | 209 | ||
209 | /* optional statistics */ | 210 | /* optional statistics */ |
210 | if (mnt->mnt_sb->s_op->show_stats) { | 211 | if (sb->s_op->show_stats) { |
211 | seq_putc(m, ' '); | 212 | seq_putc(m, ' '); |
212 | if (!err) | 213 | if (!err) |
213 | err = mnt->mnt_sb->s_op->show_stats(m, mnt); | 214 | err = sb->s_op->show_stats(m, mnt_path.dentry); |
214 | } | 215 | } |
215 | 216 | ||
216 | seq_putc(m, '\n'); | 217 | seq_putc(m, '\n'); |