Lines Matching refs:owner
656 list_move(&state->open_states, &state->owner->so_states); in nfs4_state_set_mode_locked()
658 list_move_tail(&state->open_states, &state->owner->so_states); in nfs4_state_set_mode_locked()
664 __nfs4_find_state_byowner(struct inode *inode, struct nfs4_state_owner *owner) in __nfs4_find_state_byowner() argument
670 if (state->owner != owner) in __nfs4_find_state_byowner()
687 nfs4_get_open_state(struct inode *inode, struct nfs4_state_owner *owner) in nfs4_get_open_state() argument
693 state = __nfs4_find_state_byowner(inode, owner); in nfs4_get_open_state()
698 spin_lock(&owner->so_lock); in nfs4_get_open_state()
700 state = __nfs4_find_state_byowner(inode, owner); in nfs4_get_open_state()
703 state->owner = owner; in nfs4_get_open_state()
704 atomic_inc(&owner->so_count); in nfs4_get_open_state()
711 list_add_tail(&state->open_states, &owner->so_states); in nfs4_get_open_state()
712 spin_unlock(&owner->so_lock); in nfs4_get_open_state()
715 spin_unlock(&owner->so_lock); in nfs4_get_open_state()
726 struct nfs4_state_owner *owner = state->owner; in nfs4_put_open_state() local
728 if (!atomic_dec_and_lock(&state->count, &owner->so_lock)) in nfs4_put_open_state()
734 spin_unlock(&owner->so_lock); in nfs4_put_open_state()
737 nfs4_put_state_owner(owner); in nfs4_put_open_state()
746 struct nfs4_state_owner *owner = state->owner; in __nfs4_close() local
750 atomic_inc(&owner->so_count); in __nfs4_close()
752 spin_lock(&owner->so_lock); in __nfs4_close()
779 spin_unlock(&owner->so_lock); in __nfs4_close()
783 nfs4_put_state_owner(owner); in __nfs4_close()
823 struct nfs_server *server = state->owner->so_server; in nfs4_alloc_lock_state()
854 static struct nfs4_lock_state *nfs4_get_lock_state(struct nfs4_state *state, fl_owner_t owner) in nfs4_get_lock_state() argument
860 lsp = __nfs4_find_lock_state(state, owner); in nfs4_get_lock_state()
871 new = nfs4_alloc_lock_state(state, owner); in nfs4_get_lock_state()
877 nfs4_free_lock_state(state->owner->so_server, new); in nfs4_get_lock_state()
899 server = state->owner->so_server; in nfs4_put_lock_state()
910 struct nfs4_lock_state *lsp = src->fl_u.nfs4_fl.owner; in nfs4_fl_copy_lock()
912 dst->fl_u.nfs4_fl.owner = lsp; in nfs4_fl_copy_lock()
918 nfs4_put_lock_state(fl->fl_u.nfs4_fl.owner); in nfs4_fl_release_lock()
935 fl->fl_u.nfs4_fl.owner = lsp; in nfs4_set_lock_state()
1307 set_bit(NFS_OWNER_RECLAIM_REBOOT, &state->owner->so_flags); in nfs4_state_mark_reclaim_reboot()
1316 set_bit(NFS_OWNER_RECLAIM_NOGRACE, &state->owner->so_flags); in nfs4_state_mark_reclaim_nograce()