Home
last modified time | relevance | path

Searched refs:lockowner (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/fs/lockd/
Dclntproc.c51 nlmclnt_get_lockowner(struct nlm_lockowner *lockowner) in nlmclnt_get_lockowner() argument
53 refcount_inc(&lockowner->count); in nlmclnt_get_lockowner()
54 return lockowner; in nlmclnt_get_lockowner()
57 static void nlmclnt_put_lockowner(struct nlm_lockowner *lockowner) in nlmclnt_put_lockowner() argument
59 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlmclnt_put_lockowner()
61 list_del(&lockowner->list); in nlmclnt_put_lockowner()
62 spin_unlock(&lockowner->host->h_lock); in nlmclnt_put_lockowner()
63 nlmclnt_release_host(lockowner->host); in nlmclnt_put_lockowner()
64 kfree(lockowner); in nlmclnt_put_lockowner()
69 struct nlm_lockowner *lockowner; in nlm_pidbusy() local
[all …]
Dsvclock.c336 nlmsvc_get_lockowner(struct nlm_lockowner *lockowner) in nlmsvc_get_lockowner() argument
338 refcount_inc(&lockowner->count); in nlmsvc_get_lockowner()
339 return lockowner; in nlmsvc_get_lockowner()
342 static void nlmsvc_put_lockowner(struct nlm_lockowner *lockowner) in nlmsvc_put_lockowner() argument
344 if (!refcount_dec_and_lock(&lockowner->count, &lockowner->host->h_lock)) in nlmsvc_put_lockowner()
346 list_del(&lockowner->list); in nlmsvc_put_lockowner()
347 spin_unlock(&lockowner->host->h_lock); in nlmsvc_put_lockowner()
348 nlmsvc_release_host(lockowner->host); in nlmsvc_put_lockowner()
349 kfree(lockowner); in nlmsvc_put_lockowner()
354 struct nlm_lockowner *lockowner; in __nlmsvc_find_lockowner() local
[all …]
/Linux-v5.4/fs/nfsd/
Dstate.h471 static inline struct nfs4_lockowner * lockowner(struct nfs4_stateowner *so) in lockowner() function
Dnfs4state.c1293 struct nfs4_lockowner *lo = lockowner(stp->st_stateowner); in nfs4_free_lock_stateid()
2038 remove_blocked_locks(lockowner(so)); in __destroy_client()
5693 lockowner(stp->st_stateowner))) in nfsd4_free_lock_stateid()
6176 return lockowner(nfs4_get_stateowner(so)); in find_lockowner_str_locked()
6194 unhash_lockowner_locked(lockowner(sop)); in nfs4_unhash_lockowner()
6199 struct nfs4_lockowner *lo = lockowner(sop); in nfs4_free_lockowner()
6472 lock_sop = lockowner(lock_stp->st_stateowner); in nfsd4_lock()
6531 file_lock->fl_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(&lock_sop->lo_owner)); in nfsd4_lock()
6749 file_lock->fl_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(stp->st_stateowner)); in nfsd4_locku()
6853 lo = lockowner(sop); in nfsd4_release_lockowner()
/Linux-v5.4/include/linux/
Dnfs_fs.h63 fl_owner_t lockowner; member
/Linux-v5.4/fs/nfs/
Dpagelist.c910 return l1->lockowner == l2->lockowner; in nfs_match_lock_context()
Dinode.c857 l_ctx->lockowner = current->files; in nfs_init_lock_context()
867 if (pos->lockowner != current->files) in __nfs_find_lock_context()
Dwrite.c1220 do_flush |= l_ctx->lockowner != current->files; in nfs_flush_incompatible()
Dnfs4state.c1001 fl_owner = l_ctx->lockowner; in nfs4_copy_lock_stateid()