Lines Matching refs:owner
689 list_move(&state->open_states, &state->owner->so_states); in nfs4_state_set_mode_locked()
691 list_move_tail(&state->open_states, &state->owner->so_states); in nfs4_state_set_mode_locked()
697 __nfs4_find_state_byowner(struct inode *inode, struct nfs4_state_owner *owner) in __nfs4_find_state_byowner() argument
703 if (state->owner != owner) in __nfs4_find_state_byowner()
720 nfs4_get_open_state(struct inode *inode, struct nfs4_state_owner *owner) in nfs4_get_open_state() argument
726 state = __nfs4_find_state_byowner(inode, owner); in nfs4_get_open_state()
731 spin_lock(&owner->so_lock); in nfs4_get_open_state()
733 state = __nfs4_find_state_byowner(inode, owner); in nfs4_get_open_state()
736 state->owner = owner; in nfs4_get_open_state()
737 atomic_inc(&owner->so_count); in nfs4_get_open_state()
744 list_add_tail(&state->open_states, &owner->so_states); in nfs4_get_open_state()
745 spin_unlock(&owner->so_lock); in nfs4_get_open_state()
748 spin_unlock(&owner->so_lock); in nfs4_get_open_state()
759 struct nfs4_state_owner *owner = state->owner; in nfs4_put_open_state() local
761 if (!refcount_dec_and_lock(&state->count, &owner->so_lock)) in nfs4_put_open_state()
767 spin_unlock(&owner->so_lock); in nfs4_put_open_state()
770 nfs4_put_state_owner(owner); in nfs4_put_open_state()
779 struct nfs4_state_owner *owner = state->owner; in __nfs4_close() local
783 atomic_inc(&owner->so_count); in __nfs4_close()
785 spin_lock(&owner->so_lock); in __nfs4_close()
812 spin_unlock(&owner->so_lock); in __nfs4_close()
816 nfs4_put_state_owner(owner); in __nfs4_close()
870 struct nfs_server *server = state->owner->so_server; in nfs4_alloc_lock_state()
901 static struct nfs4_lock_state *nfs4_get_lock_state(struct nfs4_state *state, fl_owner_t owner) in nfs4_get_lock_state() argument
907 lsp = __nfs4_find_lock_state(state, owner, NULL); in nfs4_get_lock_state()
918 new = nfs4_alloc_lock_state(state, owner); in nfs4_get_lock_state()
924 nfs4_free_lock_state(state->owner->so_server, new); in nfs4_get_lock_state()
946 server = state->owner->so_server; in nfs4_put_lock_state()
957 struct nfs4_lock_state *lsp = src->fl_u.nfs4_fl.owner; in nfs4_fl_copy_lock()
959 dst->fl_u.nfs4_fl.owner = lsp; in nfs4_fl_copy_lock()
965 nfs4_put_lock_state(fl->fl_u.nfs4_fl.owner); in nfs4_fl_release_lock()
982 fl->fl_u.nfs4_fl.owner = lsp; in nfs4_set_lock_state()
1370 set_bit(NFS_OWNER_RECLAIM_REBOOT, &state->owner->so_flags); in nfs4_state_mark_reclaim_reboot()
1381 set_bit(NFS_OWNER_RECLAIM_NOGRACE, &state->owner->so_flags); in nfs4_state_mark_reclaim_nograce()
1537 lsp = fl->fl_u.nfs4_fl.owner; in nfs4_reclaim_locks()