Home
last modified time | relevance | path

Searched refs:oh (Results 1 – 16 of 16) sorted by relevance

/fs/lockd/
Dsvcshare.c21 nlm_cmp_owner(struct nlm_share *share, struct xdr_netobj *oh) in nlm_cmp_owner() argument
23 return share->s_owner.len == oh->len in nlm_cmp_owner()
24 && !memcmp(share->s_owner.data, oh->data, oh->len); in nlm_cmp_owner()
32 struct xdr_netobj *oh = &argp->lock.oh; in nlmsvc_share_file() local
36 if (share->s_host == host && nlm_cmp_owner(share, oh)) in nlmsvc_share_file()
43 share = kmalloc(sizeof(*share) + oh->len, in nlmsvc_share_file()
50 memcpy(ohdata, oh->data, oh->len); in nlmsvc_share_file()
55 share->s_owner.len = oh->len; in nlmsvc_share_file()
73 struct xdr_netobj *oh = &argp->lock.oh; in nlmsvc_unshare_file() local
77 if (share->s_host == host && nlm_cmp_owner(share, oh)) { in nlmsvc_unshare_file()
Dxdr.c103 nlm_decode_oh(__be32 *p, struct xdr_netobj *oh) in nlm_decode_oh() argument
105 return xdr_decode_netobj(p, oh); in nlm_decode_oh()
109 nlm_encode_oh(__be32 *p, struct xdr_netobj *oh) in nlm_encode_oh() argument
111 return xdr_encode_netobj(p, oh); in nlm_encode_oh()
124 || !(p = nlm_decode_oh(p, &lock->oh))) in nlm_decode_lock()
163 if (!(p = xdr_encode_netobj(p, &resp->lock.oh))) in nlm_encode_testres()
275 || !(p = nlm_decode_oh(p, &lock->oh))) in nlmsvc_decode_shareargs()
Dsvclock.c413 call->a_args.lock.oh.len = lock->oh.len; in nlmsvc_setgrantargs()
416 call->a_args.lock.oh.data = call->a_owner; in nlmsvc_setgrantargs()
419 if (lock->oh.len > NLMCLNT_OHSIZE) { in nlmsvc_setgrantargs()
420 void *data = kmalloc(lock->oh.len, GFP_KERNEL); in nlmsvc_setgrantargs()
423 call->a_args.lock.oh.data = (u8 *) data; in nlmsvc_setgrantargs()
426 memcpy(call->a_args.lock.oh.data, lock->oh.data, lock->oh.len); in nlmsvc_setgrantargs()
432 if (call->a_args.lock.oh.data != call->a_owner) in nlmsvc_freegrantargs()
433 kfree(call->a_args.lock.oh.data); in nlmsvc_freegrantargs()
618 conflock->oh.len = 0; /* don't return OH info */ in nlmsvc_testlock()
Dxdr4.c101 nlm4_decode_oh(__be32 *p, struct xdr_netobj *oh) in nlm4_decode_oh() argument
103 return xdr_decode_netobj(p, oh); in nlm4_decode_oh()
116 || !(p = nlm4_decode_oh(p, &lock->oh))) in nlm4_decode_lock()
156 if (!(p = xdr_encode_netobj(p, &resp->lock.oh))) in nlm4_encode_testres()
272 || !(p = nlm4_decode_oh(p, &lock->oh))) in nlm4svc_decode_shareargs()
Dclntxdr.c243 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm_holder()
270 error = decode_netobj(xdr, &lock->oh); in decode_nlm_holder()
327 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm_lock()
Dclnt4xdr.c248 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm4_holder()
276 error = decode_netobj(xdr, &lock->oh); in decode_nlm4_holder()
333 encode_netobj(xdr, lock->oh.data, lock->oh.len); in encode_nlm4_lock()
Dclntproc.c135 lock->oh.data = req->a_owner; in nlmclnt_setlockargs()
136 lock->oh.len = snprintf(req->a_owner, sizeof(req->a_owner), "%u@%s", in nlmclnt_setlockargs()
/fs/ocfs2/
Dacl.c267 struct ocfs2_lock_holder oh; in ocfs2_iop_set_acl() local
269 had_lock = ocfs2_inode_lock_tracker(inode, &bh, 1, &oh); in ocfs2_iop_set_acl()
285 ocfs2_inode_unlock_tracker(inode, 1, &oh, had_lock); in ocfs2_iop_set_acl()
296 struct ocfs2_lock_holder oh; in ocfs2_iop_get_acl() local
302 had_lock = ocfs2_inode_lock_tracker(inode, &di_bh, 0, &oh); in ocfs2_iop_get_acl()
310 ocfs2_inode_unlock_tracker(inode, 0, &oh, had_lock); in ocfs2_iop_get_acl()
Ddlmglue.h205 struct ocfs2_lock_holder *oh);
208 struct ocfs2_lock_holder *oh,
Ddlmglue.c801 struct ocfs2_lock_holder *oh) in ocfs2_add_holder() argument
803 INIT_LIST_HEAD(&oh->oh_list); in ocfs2_add_holder()
804 oh->oh_owner_pid = get_pid(task_pid(current)); in ocfs2_add_holder()
807 list_add_tail(&oh->oh_list, &lockres->l_holders); in ocfs2_add_holder()
815 struct ocfs2_lock_holder *oh; in ocfs2_pid_holder() local
818 list_for_each_entry(oh, &lockres->l_holders, oh_list) { in ocfs2_pid_holder()
819 if (oh->oh_owner_pid == pid) { in ocfs2_pid_holder()
821 return oh; in ocfs2_pid_holder()
829 struct ocfs2_lock_holder *oh) in ocfs2_remove_holder() argument
832 list_del(&oh->oh_list); in ocfs2_remove_holder()
[all …]
Dfile.c1131 struct ocfs2_lock_holder oh; in ocfs2_setattr() local
1174 had_lock = ocfs2_inode_lock_tracker(inode, &bh, 1, &oh); in ocfs2_setattr()
1285 ocfs2_inode_unlock_tracker(inode, 1, &oh, had_lock); in ocfs2_setattr()
1303 ocfs2_inode_unlock_tracker(inode, 1, &oh, had_lock); in ocfs2_setattr()
1344 struct ocfs2_lock_holder oh; in ocfs2_permission() local
1349 had_lock = ocfs2_inode_lock_tracker(inode, NULL, 0, &oh); in ocfs2_permission()
1368 ocfs2_inode_unlock_tracker(inode, 0, &oh, had_lock); in ocfs2_permission()
Dxattr.c1328 struct ocfs2_lock_holder oh; in ocfs2_xattr_get() local
1330 had_lock = ocfs2_inode_lock_tracker(inode, &di_bh, 0, &oh); in ocfs2_xattr_get()
1340 ocfs2_inode_unlock_tracker(inode, 0, &oh, had_lock); in ocfs2_xattr_get()
3541 struct ocfs2_lock_holder oh; in ocfs2_xattr_set() local
3572 had_lock = ocfs2_inode_lock_tracker(inode, &di_bh, 1, &oh); in ocfs2_xattr_set()
3671 ocfs2_inode_unlock_tracker(inode, 1, &oh, had_lock); in ocfs2_xattr_set()
Drefcounttree.c4255 struct ocfs2_lock_holder oh; in ocfs2_reflink() local
4298 &oh); in ocfs2_reflink()
4318 ocfs2_inode_unlock_tracker(new_orphan_inode, 1, &oh, had_lock); in ocfs2_reflink()
/fs/fuse/
Ddev.c1865 struct fuse_out_header oh; in fuse_dev_do_write() local
1871 err = fuse_copy_one(cs, &oh, sizeof(oh)); in fuse_dev_do_write()
1876 if (oh.len != nbytes) in fuse_dev_do_write()
1883 if (!oh.unique) { in fuse_dev_do_write()
1884 err = fuse_notify(fc, oh.error, nbytes - sizeof(oh), cs); in fuse_dev_do_write()
1889 if (oh.error <= -512 || oh.error > 0) in fuse_dev_do_write()
1895 req = request_find(fpq, oh.unique & ~FUSE_INT_REQ_BIT); in fuse_dev_do_write()
1904 if (oh.unique & FUSE_INT_REQ_BIT) { in fuse_dev_do_write()
1911 else if (oh.error == -ENOSYS) in fuse_dev_do_write()
1913 else if (oh.error == -EAGAIN) in fuse_dev_do_write()
[all …]
/fs/coda/
Dpsdev.c192 if (!outp->oh.result) { in coda_psdev_write()
Dupcall.c768 error = -out->oh.result; in coda_upcall()