Lines Matching refs:hreq
66 xfs_fsop_handlereq_t *hreq) in xfs_find_handle() argument
77 f = fdget(hreq->fd); in xfs_find_handle()
82 error = user_lpath((const char __user *)hreq->path, &path); in xfs_find_handle()
123 if (copy_to_user(hreq->ohandle, &handle, hsize) || in xfs_find_handle()
124 copy_to_user(hreq->ohandlen, &hsize, sizeof(__s32))) in xfs_find_handle()
187 xfs_fsop_handlereq_t *hreq) in xfs_handlereq_to_dentry() argument
189 return xfs_handle_to_dentry(parfilp, hreq->ihandle, hreq->ihandlen); in xfs_handlereq_to_dentry()
195 xfs_fsop_handlereq_t *hreq) in xfs_open_by_handle() argument
210 dentry = xfs_handlereq_to_dentry(parfilp, hreq); in xfs_open_by_handle()
222 hreq->oflags |= O_LARGEFILE; in xfs_open_by_handle()
225 permflag = hreq->oflags; in xfs_open_by_handle()
252 filp = dentry_open(&path, hreq->oflags, cred); in xfs_open_by_handle()
275 xfs_fsop_handlereq_t *hreq) in xfs_readlink_by_handle() argument
285 dentry = xfs_handlereq_to_dentry(parfilp, hreq); in xfs_readlink_by_handle()
295 if (copy_from_user(&olen, hreq->ohandlen, sizeof(__u32))) { in xfs_readlink_by_handle()
309 error = readlink_copy(hreq->ohandle, olen, link); in xfs_readlink_by_handle()
373 dentry = xfs_handlereq_to_dentry(parfilp, &dmhreq.hreq); in xfs_fssetdm_by_handle()
423 dentry = xfs_handlereq_to_dentry(parfilp, &al_hreq.hreq); in xfs_attrlist_by_handle()
530 dentry = xfs_handlereq_to_dentry(parfilp, &am_hreq.hreq); in xfs_attrmulti_by_handle()
1612 xfs_fsop_handlereq_t hreq; in xfs_file_ioctl() local
1614 if (copy_from_user(&hreq, arg, sizeof(hreq))) in xfs_file_ioctl()
1616 return xfs_find_handle(cmd, &hreq); in xfs_file_ioctl()
1619 xfs_fsop_handlereq_t hreq; in xfs_file_ioctl() local
1621 if (copy_from_user(&hreq, arg, sizeof(xfs_fsop_handlereq_t))) in xfs_file_ioctl()
1623 return xfs_open_by_handle(filp, &hreq); in xfs_file_ioctl()
1629 xfs_fsop_handlereq_t hreq; in xfs_file_ioctl() local
1631 if (copy_from_user(&hreq, arg, sizeof(xfs_fsop_handlereq_t))) in xfs_file_ioctl()
1633 return xfs_readlink_by_handle(filp, &hreq); in xfs_file_ioctl()