Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267218
b: refs/heads/master
c: 45402c3
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Trond Myklebust committed Oct 18, 2011
1 parent 2a26db3 commit 80d6af6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 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: 7542274519b3ba87555410c66e8356ac1e3bc9b3
refs/heads/master: 45402c38eec740f52422aafc92937c6a4a8c8c0e
17 changes: 11 additions & 6 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,28 +733,33 @@ static int nfs_show_options(struct seq_file *m, struct vfsmount *mnt)

return 0;
}

#ifdef CONFIG_NFS_V4
#ifdef CONFIG_NFS_V4_1
void show_sessions(struct seq_file *m, struct nfs_server *server)
static void show_sessions(struct seq_file *m, struct nfs_server *server)
{
if (nfs4_has_session(server->nfs_client))
seq_printf(m, ",sessions");
}
#else
void show_sessions(struct seq_file *m, struct nfs_server *server) {}
static void show_sessions(struct seq_file *m, struct nfs_server *server) {}
#endif
#endif

#ifdef CONFIG_NFS_V4
#ifdef CONFIG_NFS_V4_1
void show_pnfs(struct seq_file *m, struct nfs_server *server)
static void show_pnfs(struct seq_file *m, struct nfs_server *server)
{
seq_printf(m, ",pnfs=");
if (server->pnfs_curr_ld)
seq_printf(m, "%s", server->pnfs_curr_ld->name);
else
seq_printf(m, "not configured");
}
#else /* CONFIG_NFS_V4_1 */
void show_pnfs(struct seq_file *m, struct nfs_server *server) {}
#endif /* CONFIG_NFS_V4_1 */
#else
static void show_pnfs(struct seq_file *m, struct nfs_server *server) {}
#endif
#endif

static int nfs_show_devname(struct seq_file *m, struct vfsmount *mnt)
{
Expand Down

0 comments on commit 80d6af6

Please sign in to comment.