Lines Matching refs:nfsi
119 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens() local
128 list_for_each_entry(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens()
224 nfs_start_delegation_return_locked(struct nfs_inode *nfsi) in nfs_start_delegation_return_locked() argument
227 struct nfs_delegation *delegation = rcu_dereference(nfsi->delegation); in nfs_start_delegation_return_locked()
240 nfs_start_delegation_return(struct nfs_inode *nfsi) in nfs_start_delegation_return() argument
245 delegation = nfs_start_delegation_return_locked(nfsi); in nfs_start_delegation_return()
263 nfs_detach_delegation_locked(struct nfs_inode *nfsi, in nfs_detach_delegation_locked() argument
268 rcu_dereference_protected(nfsi->delegation, in nfs_detach_delegation_locked()
278 rcu_assign_pointer(nfsi->delegation, NULL); in nfs_detach_delegation_locked()
283 static struct nfs_delegation *nfs_detach_delegation(struct nfs_inode *nfsi, in nfs_detach_delegation() argument
290 delegation = nfs_detach_delegation_locked(nfsi, delegation, clp); in nfs_detach_delegation()
298 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_detach_delegation() local
302 delegation = nfs_start_delegation_return(nfsi); in nfs_inode_detach_delegation()
305 return nfs_detach_delegation(nfsi, delegation, server); in nfs_inode_detach_delegation()
331 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_set_delegation() local
349 old_delegation = rcu_dereference_protected(nfsi->delegation, in nfs_inode_set_delegation()
377 freeme = nfs_detach_delegation_locked(nfsi, in nfs_inode_set_delegation()
383 rcu_assign_pointer(nfsi->delegation, delegation); in nfs_inode_set_delegation()
388 nfsi->cache_validity |= NFS_INO_REVAL_FORCED; in nfs_inode_set_delegation()
407 struct nfs_inode *nfsi = NFS_I(inode); in nfs_end_delegation_return() local
429 if (!nfs_detach_delegation(nfsi, delegation, NFS_SERVER(inode))) in nfs_end_delegation_return()
534 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_inode_return_delegation() local
539 delegation = nfs_start_delegation_return(nfsi); in nfs4_inode_return_delegation()
888 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_copy_delegation_stateid() local
894 delegation = rcu_dereference(nfsi->delegation); in nfs4_copy_delegation_stateid()
914 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_delegation_flush_on_close() local
919 delegation = rcu_dereference(nfsi->delegation); in nfs4_delegation_flush_on_close()
922 if (nfsi->nrequests < delegation->pagemod_limit) in nfs4_delegation_flush_on_close()