Lines Matching refs:clp

251 		struct nfs_client *clp)  in nfs_abort_delegation_return()  argument
258 set_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state); in nfs_abort_delegation_return()
264 struct nfs_client *clp) in nfs_detach_delegation_locked() argument
268 lockdep_is_held(&clp->cl_lock)); in nfs_detach_delegation_locked()
286 struct nfs_client *clp = server->nfs_client; in nfs_detach_delegation() local
288 spin_lock(&clp->cl_lock); in nfs_detach_delegation()
289 delegation = nfs_detach_delegation_locked(nfsi, delegation, clp); in nfs_detach_delegation()
290 spin_unlock(&clp->cl_lock); in nfs_detach_delegation()
329 struct nfs_client *clp = server->nfs_client; in nfs_inode_set_delegation() local
347 spin_lock(&clp->cl_lock); in nfs_inode_set_delegation()
349 lockdep_is_held(&clp->cl_lock)); in nfs_inode_set_delegation()
366 __func__, clp->cl_hostname); in nfs_inode_set_delegation()
377 old_delegation, clp); in nfs_inode_set_delegation()
392 spin_unlock(&clp->cl_lock); in nfs_inode_set_delegation()
405 struct nfs_client *clp = NFS_SERVER(inode)->nfs_client; in nfs_end_delegation_return() local
420 err = nfs4_wait_clnt_recover(clp); in nfs_end_delegation_return()
424 nfs_abort_delegation_return(delegation, clp); in nfs_end_delegation_return()
466 int nfs_client_return_marked_delegations(struct nfs_client *clp) in nfs_client_return_marked_delegations() argument
475 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in nfs_client_return_marked_delegations()
496 set_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state); in nfs_client_return_marked_delegations()
569 static void nfs_client_mark_return_all_delegations(struct nfs_client *clp) in nfs_client_mark_return_all_delegations() argument
574 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) in nfs_client_mark_return_all_delegations()
579 static void nfs_delegation_run_state_manager(struct nfs_client *clp) in nfs_delegation_run_state_manager() argument
581 if (test_bit(NFS4CLNT_DELEGRETURN, &clp->cl_state)) in nfs_delegation_run_state_manager()
582 nfs4_schedule_state_manager(clp); in nfs_delegation_run_state_manager()
590 void nfs_expire_all_delegations(struct nfs_client *clp) in nfs_expire_all_delegations() argument
592 nfs_client_mark_return_all_delegations(clp); in nfs_expire_all_delegations()
593 nfs_delegation_run_state_manager(clp); in nfs_expire_all_delegations()
603 struct nfs_client *clp = server->nfs_client; in nfs_server_return_all_delegations() local
606 if (clp == NULL) in nfs_server_return_all_delegations()
614 nfs4_schedule_state_manager(clp); in nfs_server_return_all_delegations()
615 nfs4_wait_clnt_recover(clp); in nfs_server_return_all_delegations()
632 static void nfs_client_mark_return_unused_delegation_types(struct nfs_client *clp, in nfs_client_mark_return_unused_delegation_types() argument
638 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) in nfs_client_mark_return_unused_delegation_types()
674 void nfs_expire_unused_delegation_types(struct nfs_client *clp, fmode_t flags) in nfs_expire_unused_delegation_types() argument
676 nfs_client_mark_return_unused_delegation_types(clp, flags); in nfs_expire_unused_delegation_types()
677 nfs_delegation_run_state_manager(clp); in nfs_expire_unused_delegation_types()
696 void nfs_expire_unreferenced_delegations(struct nfs_client *clp) in nfs_expire_unreferenced_delegations() argument
701 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) in nfs_expire_unreferenced_delegations()
705 nfs_delegation_run_state_manager(clp); in nfs_expire_unreferenced_delegations()
719 struct nfs_client *clp = server->nfs_client; in nfs_async_inode_return_delegation() local
729 if (!clp->cl_mvops->match_stateid(&delegation->stateid, stateid)) in nfs_async_inode_return_delegation()
734 nfs_delegation_run_state_manager(clp); in nfs_async_inode_return_delegation()
769 struct inode *nfs_delegation_find_inode(struct nfs_client *clp, in nfs_delegation_find_inode() argument
776 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in nfs_delegation_find_inode()
798 void nfs_delegation_mark_reclaim(struct nfs_client *clp) in nfs_delegation_mark_reclaim() argument
803 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) in nfs_delegation_mark_reclaim()
813 void nfs_delegation_reap_unclaimed(struct nfs_client *clp) in nfs_delegation_reap_unclaimed() argument
821 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) { in nfs_delegation_reap_unclaimed()
861 int nfs_delegations_present(struct nfs_client *clp) in nfs_delegations_present() argument
867 list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) in nfs_delegations_present()