Lines Matching refs:owner
675 list_move(&state->open_states, &state->owner->so_states); in nfs4_state_set_mode_locked()
677 list_move_tail(&state->open_states, &state->owner->so_states); in nfs4_state_set_mode_locked()
683 __nfs4_find_state_byowner(struct inode *inode, struct nfs4_state_owner *owner) in __nfs4_find_state_byowner() argument
689 if (state->owner != owner) in __nfs4_find_state_byowner()
706 nfs4_get_open_state(struct inode *inode, struct nfs4_state_owner *owner) in nfs4_get_open_state() argument
712 state = __nfs4_find_state_byowner(inode, owner); in nfs4_get_open_state()
717 spin_lock(&owner->so_lock); in nfs4_get_open_state()
719 state = __nfs4_find_state_byowner(inode, owner); in nfs4_get_open_state()
722 state->owner = owner; in nfs4_get_open_state()
723 atomic_inc(&owner->so_count); in nfs4_get_open_state()
730 list_add_tail(&state->open_states, &owner->so_states); in nfs4_get_open_state()
731 spin_unlock(&owner->so_lock); in nfs4_get_open_state()
734 spin_unlock(&owner->so_lock); in nfs4_get_open_state()
745 struct nfs4_state_owner *owner = state->owner; in nfs4_put_open_state() local
747 if (!atomic_dec_and_lock(&state->count, &owner->so_lock)) in nfs4_put_open_state()
753 spin_unlock(&owner->so_lock); in nfs4_put_open_state()
756 nfs4_put_state_owner(owner); in nfs4_put_open_state()
765 struct nfs4_state_owner *owner = state->owner; in __nfs4_close() local
769 atomic_inc(&owner->so_count); in __nfs4_close()
771 spin_lock(&owner->so_lock); in __nfs4_close()
798 spin_unlock(&owner->so_lock); in __nfs4_close()
802 nfs4_put_state_owner(owner); in __nfs4_close()
842 struct nfs_server *server = state->owner->so_server; in nfs4_alloc_lock_state()
873 static struct nfs4_lock_state *nfs4_get_lock_state(struct nfs4_state *state, fl_owner_t owner) in nfs4_get_lock_state() argument
879 lsp = __nfs4_find_lock_state(state, owner); in nfs4_get_lock_state()
890 new = nfs4_alloc_lock_state(state, owner); in nfs4_get_lock_state()
896 nfs4_free_lock_state(state->owner->so_server, new); in nfs4_get_lock_state()
918 server = state->owner->so_server; in nfs4_put_lock_state()
929 struct nfs4_lock_state *lsp = src->fl_u.nfs4_fl.owner; in nfs4_fl_copy_lock()
931 dst->fl_u.nfs4_fl.owner = lsp; in nfs4_fl_copy_lock()
937 nfs4_put_lock_state(fl->fl_u.nfs4_fl.owner); in nfs4_fl_release_lock()
954 fl->fl_u.nfs4_fl.owner = lsp; in nfs4_set_lock_state()
1327 set_bit(NFS_OWNER_RECLAIM_REBOOT, &state->owner->so_flags); in nfs4_state_mark_reclaim_reboot()
1336 set_bit(NFS_OWNER_RECLAIM_NOGRACE, &state->owner->so_flags); in nfs4_state_mark_reclaim_nograce()
1449 lsp = fl->fl_u.nfs4_fl.owner; in nfs4_reclaim_locks()