Lines Matching refs:owner

657 			list_move(&state->open_states, &state->owner->so_states);  in nfs4_state_set_mode_locked()
659 list_move_tail(&state->open_states, &state->owner->so_states); in nfs4_state_set_mode_locked()
665 __nfs4_find_state_byowner(struct inode *inode, struct nfs4_state_owner *owner) in __nfs4_find_state_byowner() argument
671 if (state->owner != owner) in __nfs4_find_state_byowner()
688 nfs4_get_open_state(struct inode *inode, struct nfs4_state_owner *owner) in nfs4_get_open_state() argument
694 state = __nfs4_find_state_byowner(inode, owner); in nfs4_get_open_state()
699 spin_lock(&owner->so_lock); in nfs4_get_open_state()
701 state = __nfs4_find_state_byowner(inode, owner); in nfs4_get_open_state()
704 state->owner = owner; in nfs4_get_open_state()
705 atomic_inc(&owner->so_count); in nfs4_get_open_state()
712 list_add_tail(&state->open_states, &owner->so_states); in nfs4_get_open_state()
713 spin_unlock(&owner->so_lock); in nfs4_get_open_state()
716 spin_unlock(&owner->so_lock); in nfs4_get_open_state()
727 struct nfs4_state_owner *owner = state->owner; in nfs4_put_open_state() local
729 if (!atomic_dec_and_lock(&state->count, &owner->so_lock)) in nfs4_put_open_state()
735 spin_unlock(&owner->so_lock); in nfs4_put_open_state()
738 nfs4_put_state_owner(owner); in nfs4_put_open_state()
747 struct nfs4_state_owner *owner = state->owner; in __nfs4_close() local
751 atomic_inc(&owner->so_count); in __nfs4_close()
753 spin_lock(&owner->so_lock); in __nfs4_close()
780 spin_unlock(&owner->so_lock); in __nfs4_close()
784 nfs4_put_state_owner(owner); in __nfs4_close()
824 struct nfs_server *server = state->owner->so_server; in nfs4_alloc_lock_state()
855 static struct nfs4_lock_state *nfs4_get_lock_state(struct nfs4_state *state, fl_owner_t owner) in nfs4_get_lock_state() argument
861 lsp = __nfs4_find_lock_state(state, owner); in nfs4_get_lock_state()
872 new = nfs4_alloc_lock_state(state, owner); in nfs4_get_lock_state()
878 nfs4_free_lock_state(state->owner->so_server, new); in nfs4_get_lock_state()
900 server = state->owner->so_server; in nfs4_put_lock_state()
911 struct nfs4_lock_state *lsp = src->fl_u.nfs4_fl.owner; in nfs4_fl_copy_lock()
913 dst->fl_u.nfs4_fl.owner = lsp; in nfs4_fl_copy_lock()
919 nfs4_put_lock_state(fl->fl_u.nfs4_fl.owner); in nfs4_fl_release_lock()
936 fl->fl_u.nfs4_fl.owner = lsp; in nfs4_set_lock_state()
1308 set_bit(NFS_OWNER_RECLAIM_REBOOT, &state->owner->so_flags); in nfs4_state_mark_reclaim_reboot()
1317 set_bit(NFS_OWNER_RECLAIM_NOGRACE, &state->owner->so_flags); in nfs4_state_mark_reclaim_nograce()