From 1a4a07329704d29332dcccf6f5d157e39ee4a584 Mon Sep 17 00:00:00 2001 From: Alexandros Batsakis Date: Sat, 5 Dec 2009 13:29:53 -0500 Subject: [PATCH] --- yaml --- r: 175970 b: refs/heads/master c: d8cb1a7ce36d44602946f06af4267da304fb4011 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/nfs/internal.h | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 77c235d194ed..4df5a25396a5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 31f0960778c78198957cf02cc970d92b72b929e4 +refs/heads/master: d8cb1a7ce36d44602946f06af4267da304fb4011 diff --git a/trunk/fs/nfs/internal.h b/trunk/fs/nfs/internal.h index 7b890ba37fa2..7466d24893f7 100644 --- a/trunk/fs/nfs/internal.h +++ b/trunk/fs/nfs/internal.h @@ -30,6 +30,15 @@ static inline int nfs4_has_session(const struct nfs_client *clp) return 0; } +static inline int nfs4_has_persistent_session(const struct nfs_client *clp) +{ +#ifdef CONFIG_NFS_V4_1 + if (nfs4_has_session(clp)) + return (clp->cl_session->flags & SESSION4_PERSIST); +#endif /* CONFIG_NFS_V4_1 */ + return 0; +} + struct nfs_clone_mount { const struct super_block *sb; const struct dentry *dentry;