Lines Matching refs:owner

570  * nfs4_get_state_owner - Look up a state owner given a credential
604 * @sp: state owner data to release
611 * a while, to ensure that those state owner names are
692 list_move(&state->open_states, &state->owner->so_states);
694 list_move_tail(&state->open_states, &state->owner->so_states);
700 __nfs4_find_state_byowner(struct inode *inode, struct nfs4_state_owner *owner)
706 if (state->owner != owner)
723 nfs4_get_open_state(struct inode *inode, struct nfs4_state_owner *owner)
729 state = __nfs4_find_state_byowner(inode, owner);
734 spin_lock(&owner->so_lock);
736 state = __nfs4_find_state_byowner(inode, owner);
739 state->owner = owner;
740 atomic_inc(&owner->so_count);
747 list_add_tail(&state->open_states, &owner->so_states);
748 spin_unlock(&owner->so_lock);
751 spin_unlock(&owner->so_lock);
762 struct nfs4_state_owner *owner = state->owner;
764 if (!refcount_dec_and_lock(&state->count, &owner->so_lock))
770 spin_unlock(&owner->so_lock);
774 nfs4_put_state_owner(owner);
783 struct nfs4_state_owner *owner = state->owner;
787 atomic_inc(&owner->so_count);
789 spin_lock(&owner->so_lock);
816 spin_unlock(&owner->so_lock);
820 nfs4_put_state_owner(owner);
839 * owner (current->files) and the second refers to a flock/OFD
840 * owner (struct file*). In that case, prefer a match for the first
841 * owner.
845 * consistent choice we make is to prefer the first owner, that of a
874 struct nfs_server *server = state->owner->so_server;
905 static struct nfs4_lock_state *nfs4_get_lock_state(struct nfs4_state *state, fl_owner_t owner)
911 lsp = __nfs4_find_lock_state(state, owner, NULL);
922 new = nfs4_alloc_lock_state(state, owner);
928 nfs4_free_lock_state(state->owner->so_server, new);
950 server = state->owner->so_server;
961 struct nfs4_lock_state *lsp = src->fl_u.nfs4_fl.owner;
963 dst->fl_u.nfs4_fl.owner = lsp;
969 nfs4_put_lock_state(fl->fl_u.nfs4_fl.owner);
986 fl->fl_u.nfs4_fl.owner = lsp;
1393 set_bit(NFS_OWNER_RECLAIM_REBOOT, &state->owner->so_flags);
1404 set_bit(NFS_OWNER_RECLAIM_NOGRACE, &state->owner->so_flags);
1561 lsp = fl->fl_u.nfs4_fl.owner;