diff options
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index ffa6bd54d439..7cef45db9257 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -207,6 +207,18 @@ extern int nfs4_path_walk(struct nfs_server *server, | |||
207 | #endif | 207 | #endif |
208 | 208 | ||
209 | /* | 209 | /* |
210 | * Determine if sessions are in use. | ||
211 | */ | ||
212 | static inline int nfs4_has_session(const struct nfs_client *clp) | ||
213 | { | ||
214 | #ifdef CONFIG_NFS_V4_1 | ||
215 | if (clp->cl_session) | ||
216 | return 1; | ||
217 | #endif /* CONFIG_NFS_V4_1 */ | ||
218 | return 0; | ||
219 | } | ||
220 | |||
221 | /* | ||
210 | * Determine the device name as a string | 222 | * Determine the device name as a string |
211 | */ | 223 | */ |
212 | static inline char *nfs_devname(const struct vfsmount *mnt_parent, | 224 | static inline char *nfs_devname(const struct vfsmount *mnt_parent, |