/fs/nfsd/ |
D | nfs3proc.c | 46 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd3_proc_getattr() local 51 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr() 53 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr() 70 struct nfsd3_sattrargs *argp = rqstp->rq_argp; in nfsd3_proc_setattr() local 75 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr() 77 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr() 78 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr() 79 argp->check_guard, argp->guardtime); in nfsd3_proc_setattr() 89 struct nfsd3_diropargs *argp = rqstp->rq_argp; in nfsd3_proc_lookup() local 94 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup() [all …]
|
D | nfsproc.c | 45 struct nfsd_fhandle *argp = rqstp->rq_argp; in nfsd_proc_getattr() local 48 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr() 50 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr() 63 struct nfsd_sattrargs *argp = rqstp->rq_argp; in nfsd_proc_setattr() local 65 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr() 70 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr() 71 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr() 73 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() 130 struct nfsd_diropargs *argp = rqstp->rq_argp; in nfsd_proc_lookup() local 135 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup() [all …]
|
D | nfs2acl.c | 33 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsacld_proc_getacl() local 40 dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_getacl() 42 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl() 49 if (argp->mask & ~NFS_ACL_MASK) in nfsacld_proc_getacl() 51 resp->mask = argp->mask; in nfsacld_proc_getacl() 94 struct nfsd3_setaclargs *argp = rqstp->rq_argp; in nfsacld_proc_setacl() local 101 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl() 103 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl() 116 error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access); in nfsacld_proc_setacl() 119 error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default); in nfsacld_proc_setacl() [all …]
|
D | nfs4xdr.c | 116 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \ 117 savemem(argp, p, nbytes) : \ 132 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \ 133 p = argp->p; \ 134 argp->p += XDR_QUADLEN(nbytes); \ 135 } else if (!(p = read_buf(argp, nbytes))) { \ 142 static void next_decode_page(struct nfsd4_compoundargs *argp) in next_decode_page() argument 144 argp->p = page_address(argp->pagelist[0]); in next_decode_page() 145 argp->pagelist++; in next_decode_page() 146 if (argp->pagelen < PAGE_SIZE) { in next_decode_page() [all …]
|
D | nfs3acl.c | 32 struct nfsd3_getaclargs *argp = rqstp->rq_argp; in nfsd3_proc_getacl() local 39 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl() 46 if (argp->mask & ~NFS_ACL_MASK) in nfsd3_proc_getacl() 48 resp->mask = argp->mask; in nfsd3_proc_getacl() 87 struct nfsd3_setaclargs *argp = rqstp->rq_argp; in nfsd3_proc_setacl() local 94 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl() 107 error = set_posix_acl(inode, ACL_TYPE_ACCESS, argp->acl_access); in nfsd3_proc_setacl() 110 error = set_posix_acl(inode, ACL_TYPE_DEFAULT, argp->acl_default); in nfsd3_proc_setacl() 120 posix_acl_release(argp->acl_access); in nfsd3_proc_setacl() 121 posix_acl_release(argp->acl_default); in nfsd3_proc_setacl()
|
/fs/lockd/ |
D | svc4proc.c | 23 nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlm4svc_retrieve_args() argument 28 struct nlm_lock *lock = &argp->lock; in nlm4svc_retrieve_args() 37 || (argp->monitor && nsm_monitor(host) < 0)) in nlm4svc_retrieve_args() 84 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_test() local 90 resp->cookie = argp->cookie; in __nlm4svc_proc_test() 93 if ((resp->status = nlm4svc_retrieve_args(rqstp, argp, &host, &file))) in __nlm4svc_proc_test() 97 resp->status = nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie); in __nlm4svc_proc_test() 103 nlmsvc_release_lockowner(&argp->lock); in __nlm4svc_proc_test() 118 struct nlm_args *argp = rqstp->rq_argp; in __nlm4svc_proc_lock() local 125 resp->cookie = argp->cookie; in __nlm4svc_proc_lock() [all …]
|
D | svcproc.c | 52 nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp, in nlmsvc_retrieve_args() argument 57 struct nlm_lock *lock = &argp->lock; in nlmsvc_retrieve_args() 66 || (argp->monitor && nsm_monitor(host) < 0)) in nlmsvc_retrieve_args() 114 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_test() local 120 resp->cookie = argp->cookie; in __nlmsvc_proc_test() 123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test() 127 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test() 134 nlmsvc_release_lockowner(&argp->lock); in __nlmsvc_proc_test() 149 struct nlm_args *argp = rqstp->rq_argp; in __nlmsvc_proc_lock() local 156 resp->cookie = argp->cookie; in __nlmsvc_proc_lock() [all …]
|
D | xdr.c | 186 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_testargs() local 189 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_testargs() 193 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_testargs() 196 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_testargs() 214 struct nlm_args *argp = rqstp->rq_argp; in nlmsvc_decode_lockargs() local 217 if (!(p = nlm_decode_cookie(p, &argp->cookie))) in nlmsvc_decode_lockargs() 219 argp->block = ntohl(*p++); in nlmsvc_decode_lockargs() 221 if (!(p = nlm_decode_lock(p, &argp->lock))) in nlmsvc_decode_lockargs() 224 argp->lock.fl.fl_type = F_WRLCK; in nlmsvc_decode_lockargs() 225 argp->reclaim = ntohl(*p++); in nlmsvc_decode_lockargs() [all …]
|
D | xdr4.c | 183 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_testargs() local 186 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_testargs() 190 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_testargs() 193 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_testargs() 211 struct nlm_args *argp = rqstp->rq_argp; in nlm4svc_decode_lockargs() local 214 if (!(p = nlm4_decode_cookie(p, &argp->cookie))) in nlm4svc_decode_lockargs() 216 argp->block = ntohl(*p++); in nlm4svc_decode_lockargs() 218 if (!(p = nlm4_decode_lock(p, &argp->lock))) in nlm4svc_decode_lockargs() 221 argp->lock.fl.fl_type = F_WRLCK; in nlm4svc_decode_lockargs() 222 argp->reclaim = ntohl(*p++); in nlm4svc_decode_lockargs() [all …]
|
D | mon.c | 436 static void encode_mon_name(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_name() argument 438 encode_nsm_string(xdr, argp->mon_name); in encode_mon_name() 447 static void encode_my_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_my_id() argument 451 encode_nsm_string(xdr, argp->nodename); in encode_my_id() 453 *p++ = cpu_to_be32(argp->prog); in encode_my_id() 454 *p++ = cpu_to_be32(argp->vers); in encode_my_id() 455 *p = cpu_to_be32(argp->proc); in encode_my_id() 462 static void encode_mon_id(struct xdr_stream *xdr, const struct nsm_args *argp) in encode_mon_id() argument 464 encode_mon_name(xdr, argp); in encode_mon_id() 465 encode_my_id(xdr, argp); in encode_mon_id() [all …]
|
D | svcshare.c | 29 struct nlm_args *argp) in nlmsvc_share_file() argument 32 struct xdr_netobj *oh = &argp->lock.oh; in nlmsvc_share_file() 38 if ((argp->fsm_access & share->s_mode) in nlmsvc_share_file() 39 || (argp->fsm_mode & share->s_access )) in nlmsvc_share_file() 60 share->s_access = argp->fsm_access; in nlmsvc_share_file() 61 share->s_mode = argp->fsm_mode; in nlmsvc_share_file() 70 struct nlm_args *argp) in nlmsvc_unshare_file() argument 73 struct xdr_netobj *oh = &argp->lock.oh; in nlmsvc_unshare_file()
|
D | clntproc.c | 128 struct nlm_args *argp = &req->a_args; in nlmclnt_setlockargs() local 129 struct nlm_lock *lock = &argp->lock; in nlmclnt_setlockargs() 132 nlmclnt_next_cookie(&argp->cookie); in nlmclnt_setlockargs() 265 struct nlm_args *argp = &req->a_args; in nlmclnt_call() local 268 .rpc_argp = argp, in nlmclnt_call() 278 if (host->h_reclaiming && !argp->reclaim) in nlmclnt_call() 308 if (argp->reclaim) { in nlmclnt_call() 314 if (!argp->reclaim) { in nlmclnt_call()
|
/fs/nilfs2/ |
D | ioctl.c | 118 static int nilfs_ioctl_getflags(struct inode *inode, void __user *argp) in nilfs_ioctl_getflags() argument 122 return put_user(flags, (int __user *)argp); in nilfs_ioctl_getflags() 129 void __user *argp) in nilfs_ioctl_setflags() argument 138 if (get_user(flags, (int __user *)argp)) in nilfs_ioctl_setflags() 178 static int nilfs_ioctl_getversion(struct inode *inode, void __user *argp) in nilfs_ioctl_getversion() argument 180 return put_user(inode->i_generation, (int __user *)argp); in nilfs_ioctl_getversion() 203 unsigned int cmd, void __user *argp) in nilfs_ioctl_change_cpmode() argument 218 if (copy_from_user(&cpmode, argp, sizeof(cpmode))) in nilfs_ioctl_change_cpmode() 258 unsigned int cmd, void __user *argp) in nilfs_ioctl_delete_checkpoint() argument 273 if (copy_from_user(&cno, argp, sizeof(cno))) in nilfs_ioctl_delete_checkpoint() [all …]
|
/fs/ |
D | ioctl.c | 248 static long ioctl_file_clone_range(struct file *file, void __user *argp) in ioctl_file_clone_range() argument 252 if (copy_from_user(&args, argp, sizeof(args))) in ioctl_file_clone_range() 470 int ioctl_preallocate(struct file *filp, void __user *argp) in ioctl_preallocate() argument 475 if (copy_from_user(&sr, argp, sizeof(sr))) in ioctl_preallocate() 513 static int ioctl_fionbio(struct file *filp, int __user *argp) in ioctl_fionbio() argument 518 error = get_user(on, argp); in ioctl_fionbio() 537 int __user *argp) in ioctl_fioasync() argument 542 error = get_user(on, argp); in ioctl_fioasync() 590 struct file_dedupe_range __user *argp = arg; in ioctl_file_dedupe_range() local 596 if (get_user(count, &argp->dest_count)) { in ioctl_file_dedupe_range() [all …]
|
D | fcntl.c | 280 u64 *argp = (u64 __user *)arg; in fcntl_rw_hint() local 287 if (copy_to_user(argp, &h, sizeof(*argp))) in fcntl_rw_hint() 291 if (copy_from_user(&h, argp, sizeof(h))) in fcntl_rw_hint() 303 if (copy_to_user(argp, &h, sizeof(*argp))) in fcntl_rw_hint() 307 if (copy_from_user(&h, argp, sizeof(h))) in fcntl_rw_hint() 325 void __user *argp = (void __user *)arg; in do_fcntl() local 354 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl() 357 if (!err && copy_to_user(argp, &flock, sizeof(flock))) in do_fcntl() 368 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl() 475 void __user *argp = (void __user *)arg; in SYSCALL_DEFINE3() local [all …]
|
D | compat_ioctl.c | 383 unsigned int cmd, void __user *argp) in mt_ioctl_trans() argument 413 upos32 = argp; in mt_ioctl_trans() 417 umget32 = argp; in mt_ioctl_trans() 445 unsigned cmd, void __user *argp) in rtc_ioctl() argument 460 return convert_in_user(valp, (unsigned int __user *)argp); in rtc_ioctl() 462 return do_ioctl(file, RTC_IRQP_SET, (unsigned long)argp); in rtc_ioctl() 464 return do_ioctl(file, RTC_EPOCH_SET, (unsigned long)argp); in rtc_ioctl() 930 void __user *argp = compat_ptr(arg); in do_ioctl_trans() local 934 return ppp_gidle(file, cmd, argp); in do_ioctl_trans() 936 return ppp_scompress(file, cmd, argp); in do_ioctl_trans() [all …]
|
D | nsfs.c | 191 uid_t __user *argp; in ns_ioctl() local 207 argp = (uid_t __user *) arg; in ns_ioctl() 209 return put_user(uid, argp); in ns_ioctl()
|
/fs/nfs/ |
D | callback.h | 118 extern __be32 nfs4_callback_sequence(void *argp, void *resp, 137 extern __be32 nfs4_callback_recallany(void *argp, void *resp, 143 extern __be32 nfs4_callback_recallslot(void *argp, void *resp, 160 extern __be32 nfs4_callback_layoutrecall(void *argp, void *resp, 175 extern __be32 nfs4_callback_devicenotify(void *argp, void *resp, 184 extern __be32 nfs4_callback_notify_lock(void *argp, void *resp, 200 extern __be32 nfs4_callback_getattr(void *argp, void *resp, 202 extern __be32 nfs4_callback_recall(void *argp, void *resp,
|
D | callback_proc.c | 23 __be32 nfs4_callback_getattr(void *argp, void *resp, in nfs4_callback_getattr() argument 26 struct cb_getattrargs *args = argp; in nfs4_callback_getattr() 75 __be32 nfs4_callback_recall(void *argp, void *resp, in nfs4_callback_recall() argument 78 struct cb_recallargs *args = argp; in nfs4_callback_recall() 339 __be32 nfs4_callback_layoutrecall(void *argp, void *resp, in nfs4_callback_layoutrecall() argument 342 struct cb_layoutrecallargs *args = argp; in nfs4_callback_layoutrecall() 361 __be32 nfs4_callback_devicenotify(void *argp, void *resp, in nfs4_callback_devicenotify() argument 364 struct cb_devicenotifyargs *args = argp; in nfs4_callback_devicenotify() 500 __be32 nfs4_callback_sequence(void *argp, void *resp, in nfs4_callback_sequence() argument 503 struct cb_sequenceargs *args = argp; in nfs4_callback_sequence() [all …]
|
D | callback_xdr.c | 177 struct xdr_stream *xdr, void *argp) in decode_getattr_args() argument 179 struct cb_getattrargs *args = argp; in decode_getattr_args() 189 struct xdr_stream *xdr, void *argp) in decode_recall_args() argument 191 struct cb_recallargs *args = argp; in decode_recall_args() 213 struct xdr_stream *xdr, void *argp) in decode_layoutrecall_args() argument 215 struct cb_layoutrecallargs *args = argp; in decode_layoutrecall_args() 258 void *argp) in decode_devicenotify_args() argument 260 struct cb_devicenotifyargs *args = argp; in decode_devicenotify_args() 401 void *argp) in decode_cb_sequence_args() argument 403 struct cb_sequenceargs *args = argp; in decode_cb_sequence_args() [all …]
|
D | read.c | 263 struct nfs_pgio_args *argp = &hdr->args; in nfs_readpage_retry() local 270 nfs_set_pgio_error(hdr, -EIO, argp->offset); in nfs_readpage_retry() 282 argp->offset += resp->count; in nfs_readpage_retry() 283 argp->pgbase += resp->count; in nfs_readpage_retry() 284 argp->count -= resp->count; in nfs_readpage_retry()
|
D | write.c | 1520 struct nfs_pgio_args *argp = &hdr->args; in nfs_writeback_check_extend() local 1522 u64 size = argp->offset + resp->count; in nfs_writeback_check_extend() 1611 struct nfs_pgio_args *argp = &hdr->args; in nfs_writeback_result() local 1614 if (resp->count < argp->count) { in nfs_writeback_result() 1625 argp->count); in nfs_writeback_result() 1628 nfs_set_pgio_error(hdr, -EIO, argp->offset); in nfs_writeback_result() 1643 argp->offset += resp->count; in nfs_writeback_result() 1644 argp->pgbase += resp->count; in nfs_writeback_result() 1645 argp->count -= resp->count; in nfs_writeback_result() 1650 argp->stable = NFS_FILE_SYNC; in nfs_writeback_result()
|
/fs/btrfs/ |
D | ioctl.c | 2217 void __user *argp) in btrfs_ioctl_tree_search() argument 2228 uargs = (struct btrfs_ioctl_search_args __user *)argp; in btrfs_ioctl_tree_search() 2251 void __user *argp) in btrfs_ioctl_tree_search_v2() argument 2264 uarg = (struct btrfs_ioctl_search_args_v2 __user *)argp; in btrfs_ioctl_tree_search_v2() 2539 void __user *argp) in btrfs_ioctl_ino_lookup() argument 2545 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup() 2573 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup() 2592 static int btrfs_ioctl_ino_lookup_user(struct file *file, void __user *argp) in btrfs_ioctl_ino_lookup_user() argument 2598 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup_user() 2616 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup_user() [all …]
|
/fs/hfsplus/ |
D | ioctl.c | 142 void __user *argp = (void __user *)arg; in hfsplus_ioctl() local 146 return hfsplus_ioctl_getflags(file, argp); in hfsplus_ioctl() 148 return hfsplus_ioctl_setflags(file, argp); in hfsplus_ioctl() 150 return hfsplus_ioctl_bless(file, argp); in hfsplus_ioctl()
|
/fs/ocfs2/ |
D | ioctl.c | 849 void __user *argp = (void __user *)arg; in ocfs2_ioctl() local 906 if (copy_from_user(&args, argp, sizeof(args))) in ocfs2_ioctl() 914 if (copy_from_user(&info, argp, sizeof(struct ocfs2_info))) in ocfs2_ioctl() 931 if (copy_from_user(&range, argp, sizeof(range))) in ocfs2_ioctl() 940 if (copy_to_user(argp, &range, sizeof(range))) in ocfs2_ioctl() 946 return ocfs2_ioctl_move_extents(filp, argp); in ocfs2_ioctl() 959 void __user *argp = (void __user *)arg; in ocfs2_compat_ioctl() local 977 if (copy_from_user(&args, argp, sizeof(args))) in ocfs2_compat_ioctl() 984 if (copy_from_user(&info, argp, sizeof(struct ocfs2_info))) in ocfs2_compat_ioctl()
|