mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 00:50:54 +07:00
nfs41: check if session exists and if it is persistent
Signed-off-by: Alexandros Batsakis <batsakis@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
31f0960778
commit
d8cb1a7ce3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user