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/nfs | |
parent | cdcf116d44e78c7216ba9f8be9af1cdfca7af728 (diff) |
vfs: switch ->show_stats to struct dentry *
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/super.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 0e6dd56a9f1e..dd74d3bc2eaa 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -265,7 +265,7 @@ static int nfs_statfs(struct dentry *, struct kstatfs *); | |||
265 | static int nfs_show_options(struct seq_file *, struct vfsmount *); | 265 | static int nfs_show_options(struct seq_file *, struct vfsmount *); |
266 | static int nfs_show_devname(struct seq_file *, struct vfsmount *); | 266 | static int nfs_show_devname(struct seq_file *, struct vfsmount *); |
267 | static int nfs_show_path(struct seq_file *, struct vfsmount *); | 267 | static int nfs_show_path(struct seq_file *, struct vfsmount *); |
268 | static int nfs_show_stats(struct seq_file *, struct vfsmount *); | 268 | static int nfs_show_stats(struct seq_file *, struct dentry *); |
269 | static struct dentry *nfs_fs_mount(struct file_system_type *, | 269 | static struct dentry *nfs_fs_mount(struct file_system_type *, |
270 | int, const char *, void *); | 270 | int, const char *, void *); |
271 | static struct dentry *nfs_xdev_mount(struct file_system_type *fs_type, | 271 | static struct dentry *nfs_xdev_mount(struct file_system_type *fs_type, |
@@ -785,10 +785,10 @@ static int nfs_show_path(struct seq_file *m, struct vfsmount *mnt) | |||
785 | /* | 785 | /* |
786 | * Present statistical information for this VFS mountpoint | 786 | * Present statistical information for this VFS mountpoint |
787 | */ | 787 | */ |
788 | static int nfs_show_stats(struct seq_file *m, struct vfsmount *mnt) | 788 | static int nfs_show_stats(struct seq_file *m, struct dentry *root) |
789 | { | 789 | { |
790 | int i, cpu; | 790 | int i, cpu; |
791 | struct nfs_server *nfss = NFS_SB(mnt->mnt_sb); | 791 | struct nfs_server *nfss = NFS_SB(root->d_sb); |
792 | struct rpc_auth *auth = nfss->client->cl_auth; | 792 | struct rpc_auth *auth = nfss->client->cl_auth; |
793 | struct nfs_iostats totals = { }; | 793 | struct nfs_iostats totals = { }; |
794 | 794 | ||
@@ -798,10 +798,10 @@ static int nfs_show_stats(struct seq_file *m, struct vfsmount *mnt) | |||
798 | * Display all mount option settings | 798 | * Display all mount option settings |
799 | */ | 799 | */ |
800 | seq_printf(m, "\n\topts:\t"); | 800 | seq_printf(m, "\n\topts:\t"); |
801 | seq_puts(m, mnt->mnt_sb->s_flags & MS_RDONLY ? "ro" : "rw"); | 801 | seq_puts(m, root->d_sb->s_flags & MS_RDONLY ? "ro" : "rw"); |
802 | seq_puts(m, mnt->mnt_sb->s_flags & MS_SYNCHRONOUS ? ",sync" : ""); | 802 | seq_puts(m, root->d_sb->s_flags & MS_SYNCHRONOUS ? ",sync" : ""); |
803 | seq_puts(m, mnt->mnt_sb->s_flags & MS_NOATIME ? ",noatime" : ""); | 803 | seq_puts(m, root->d_sb->s_flags & MS_NOATIME ? ",noatime" : ""); |
804 | seq_puts(m, mnt->mnt_sb->s_flags & MS_NODIRATIME ? ",nodiratime" : ""); | 804 | seq_puts(m, root->d_sb->s_flags & MS_NODIRATIME ? ",nodiratime" : ""); |
805 | nfs_show_mount_options(m, nfss, 1); | 805 | nfs_show_mount_options(m, nfss, 1); |
806 | 806 | ||
807 | seq_printf(m, "\n\tage:\t%lu", (jiffies - nfss->mount_time) / HZ); | 807 | seq_printf(m, "\n\tage:\t%lu", (jiffies - nfss->mount_time) / HZ); |