Lines Matching refs:nfsi
140 struct nfs_inode *nfsi = NFS_I(inode); in nfs_delegation_claim_opens() local
149 list_for_each_entry_rcu(ctx, &nfsi->open_files, list) { in nfs_delegation_claim_opens()
250 nfs_start_delegation_return_locked(struct nfs_inode *nfsi) in nfs_start_delegation_return_locked() argument
253 struct nfs_delegation *delegation = rcu_dereference(nfsi->delegation); in nfs_start_delegation_return_locked()
266 nfs_start_delegation_return(struct nfs_inode *nfsi) in nfs_start_delegation_return() argument
271 delegation = nfs_start_delegation_return_locked(nfsi); in nfs_start_delegation_return()
289 nfs_detach_delegation_locked(struct nfs_inode *nfsi, in nfs_detach_delegation_locked() argument
294 rcu_dereference_protected(nfsi->delegation, in nfs_detach_delegation_locked()
304 rcu_assign_pointer(nfsi->delegation, NULL); in nfs_detach_delegation_locked()
309 static struct nfs_delegation *nfs_detach_delegation(struct nfs_inode *nfsi, in nfs_detach_delegation() argument
316 delegation = nfs_detach_delegation_locked(nfsi, delegation, clp); in nfs_detach_delegation()
324 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_detach_delegation() local
328 delegation = nfs_start_delegation_return(nfsi); in nfs_inode_detach_delegation()
331 return nfs_detach_delegation(nfsi, delegation, server); in nfs_inode_detach_delegation()
362 struct nfs_inode *nfsi = NFS_I(inode); in nfs_inode_set_delegation() local
380 old_delegation = rcu_dereference_protected(nfsi->delegation, in nfs_inode_set_delegation()
408 freeme = nfs_detach_delegation_locked(nfsi, in nfs_inode_set_delegation()
414 rcu_assign_pointer(nfsi->delegation, delegation); in nfs_inode_set_delegation()
438 struct nfs_inode *nfsi = NFS_I(inode); in nfs_end_delegation_return() local
460 if (!nfs_detach_delegation(nfsi, delegation, NFS_SERVER(inode))) in nfs_end_delegation_return()
615 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_inode_return_delegation() local
620 delegation = nfs_start_delegation_return(nfsi); in nfs4_inode_return_delegation()
1214 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_copy_delegation_stateid() local
1220 delegation = rcu_dereference(nfsi->delegation); in nfs4_copy_delegation_stateid()
1242 struct nfs_inode *nfsi = NFS_I(inode); in nfs4_delegation_flush_on_close() local
1247 delegation = rcu_dereference(nfsi->delegation); in nfs4_delegation_flush_on_close()
1250 if (atomic_long_read(&nfsi->nrequests) < delegation->pagemod_limit) in nfs4_delegation_flush_on_close()