Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294521
b: refs/heads/master
c: 7e03b7c
h: refs/heads/master
i:
  294519: 5c5640d
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Mar 5, 2012
1 parent 8f180ea commit ca2c50a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 91e56aaedd7ebceacde782a3921fadef4b5d0e1c
refs/heads/master: 7e03b7cc0736eefe7471782c344112ad6eba951e
28 changes: 19 additions & 9 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,6 @@ static void show_sessions(struct seq_file *m, struct nfs_server *server) {}
#endif
#endif

#ifdef CONFIG_NFS_V4
#ifdef CONFIG_NFS_V4_1
static void show_pnfs(struct seq_file *m, struct nfs_server *server)
{
Expand All @@ -785,9 +784,26 @@ static void show_pnfs(struct seq_file *m, struct nfs_server *server)
else
seq_printf(m, "not configured");
}

static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss)
{
if (nfss->nfs_client && nfss->nfs_client->impl_id) {
struct nfs41_impl_id *impl_id = nfss->nfs_client->impl_id;
seq_printf(m, "\n\timpl_id:\tname='%s',domain='%s',"
"date='%llu,%u'",
impl_id->name, impl_id->domain,
impl_id->date.seconds, impl_id->date.nseconds);
}
}
#else
static void show_pnfs(struct seq_file *m, struct nfs_server *server) {}
#ifdef CONFIG_NFS_V4
static void show_pnfs(struct seq_file *m, struct nfs_server *server)
{
}
#endif
static void show_implementation_id(struct seq_file *m, struct nfs_server *nfss)
{
}
#endif

static int nfs_show_devname(struct seq_file *m, struct dentry *root)
Expand Down Expand Up @@ -836,13 +852,7 @@ static int nfs_show_stats(struct seq_file *m, struct dentry *root)

seq_printf(m, "\n\tage:\t%lu", (jiffies - nfss->mount_time) / HZ);

if (nfss->nfs_client && nfss->nfs_client->impl_id) {
struct nfs41_impl_id *impl_id = nfss->nfs_client->impl_id;
seq_printf(m, "\n\timpl_id:\tname='%s',domain='%s',"
"date='%llu,%u'",
impl_id->name, impl_id->domain,
impl_id->date.seconds, impl_id->date.nseconds);
}
show_implementation_id(m, nfss);

seq_printf(m, "\n\tcaps:\t");
seq_printf(m, "caps=0x%x", nfss->caps);
Expand Down

0 comments on commit ca2c50a

Please sign in to comment.