/fs/ |
D | fcntl.c | 32 static int setfl(int fd, struct file * filp, unsigned long arg) in setfl() argument 41 if (((arg ^ filp->f_flags) & O_APPEND) && IS_APPEND(inode)) in setfl() 45 if ((arg & O_NOATIME) && !(filp->f_flags & O_NOATIME)) in setfl() 51 if (arg & O_NDELAY) in setfl() 52 arg |= O_NONBLOCK; in setfl() 54 if (arg & O_DIRECT) { in setfl() 61 error = filp->f_op->check_flags(arg); in setfl() 68 if (((arg ^ filp->f_flags) & FASYNC) && filp->f_op->fasync) { in setfl() 69 error = filp->f_op->fasync(fd, filp, (arg & FASYNC) != 0); in setfl() 76 filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK); in setfl() [all …]
|
D | ioctl.c | 36 unsigned long arg) in vfs_ioctl() argument 43 error = filp->f_op->unlocked_ioctl(filp, cmd, arg); in vfs_ioctl() 173 static int ioctl_fiemap(struct file *filp, unsigned long arg) in ioctl_fiemap() argument 176 struct fiemap __user *ufiemap = (struct fiemap __user *) arg; in ioctl_fiemap() 455 unsigned long arg) in file_ioctl() argument 458 int __user *p = (int __user *)arg; in file_ioctl() 470 return vfs_ioctl(filp, cmd, arg); in file_ioctl() 556 unsigned long arg) in do_vfs_ioctl() argument 559 int __user *argp = (int __user *)arg; in do_vfs_ioctl() 598 return ioctl_fiemap(filp, arg); in do_vfs_ioctl() [all …]
|
D | userfaultfd.c | 86 if (len && (start > uwq->msg.arg.pagefault.address || in userfaultfd_wake_function() 87 start + len <= uwq->msg.arg.pagefault.address)) in userfaultfd_wake_function() 162 msg.arg.pagefault.address = address; in userfault_msg() 171 msg.arg.pagefault.flags |= UFFD_PAGEFAULT_FLAG_WRITE; in userfault_msg() 180 msg.arg.pagefault.flags |= UFFD_PAGEFAULT_FLAG_WP; in userfault_msg() 727 unsigned long arg) in userfaultfd_register() argument 738 user_uffdio_register = (struct uffdio_register __user *) arg; in userfaultfd_register() 897 unsigned long arg) in userfaultfd_unregister() argument 906 const void __user *buf = (void __user *)arg; in userfaultfd_unregister() 1031 unsigned long arg) in userfaultfd_wake() argument [all …]
|
/fs/jfs/ |
D | jfs_debug.h | 68 #define jfs_info(fmt, arg...) do { \ argument 70 printk(KERN_INFO fmt "\n", ## arg); \ 74 #define jfs_debug(fmt, arg...) do { \ argument 76 printk(KERN_DEBUG fmt "\n", ## arg); \ 80 #define jfs_warn(fmt, arg...) do { \ argument 82 printk(KERN_WARNING fmt "\n", ## arg); \ 86 #define jfs_err(fmt, arg...) do { \ argument 88 printk(KERN_ERR fmt "\n", ## arg); \ 97 #define jfs_info(fmt, arg...) do {} while (0) argument 98 #define jfs_debug(fmt, arg...) do {} while (0) argument [all …]
|
D | ioctl.c | 59 long jfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in jfs_ioctl() argument 70 return put_user(flags, (int __user *) arg); in jfs_ioctl() 83 if (get_user(flags, (int __user *) arg)) { in jfs_ioctl() 146 if (copy_from_user(&range, (struct fstrim_range __user *)arg, in jfs_ioctl() 157 if (copy_to_user((struct fstrim_range __user *)arg, &range, in jfs_ioctl() 170 long jfs_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in jfs_compat_ioctl() argument 184 return jfs_ioctl(filp, cmd, arg); in jfs_compat_ioctl()
|
/fs/nfs/ |
D | nfs3proc.c | 124 struct nfs3_sattrargs arg = { in nfs3_proc_setattr() local 130 .rpc_argp = &arg, in nfs3_proc_setattr() 151 struct nfs3_diropargs arg = { in nfs3_proc_lookup() local 162 .rpc_argp = &arg, in nfs3_proc_lookup() 188 struct nfs3_accessargs arg = { in nfs3_proc_access() local 194 .rpc_argp = &arg, in nfs3_proc_access() 204 arg.access |= NFS3_ACCESS_READ; in nfs3_proc_access() 207 arg.access |= NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND | NFS3_ACCESS_DELETE; in nfs3_proc_access() 209 arg.access |= NFS3_ACCESS_LOOKUP; in nfs3_proc_access() 212 arg.access |= NFS3_ACCESS_MODIFY | NFS3_ACCESS_EXTEND; in nfs3_proc_access() [all …]
|
D | proc.c | 122 struct nfs_sattrargs arg = { in nfs_proc_setattr() local 128 .rpc_argp = &arg, in nfs_proc_setattr() 152 struct nfs_diropargs arg = { in nfs_proc_lookup() local 163 .rpc_argp = &arg, in nfs_proc_lookup() 197 struct nfs_createargs arg; member 211 data->arg.fh = NFS_FH(dir); in nfs_alloc_createdata() 212 data->arg.name = dentry->d_name.name; in nfs_alloc_createdata() 213 data->arg.len = dentry->d_name.len; in nfs_alloc_createdata() 214 data->arg.sattr = sattr; in nfs_alloc_createdata() 242 msg.rpc_argp = &data->arg; in nfs_proc_create() [all …]
|
/fs/xfs/ |
D | xfs_ioctl.c | 358 void __user *arg) in xfs_fssetdm_by_handle() argument 367 if (copy_from_user(&dmhreq, arg, sizeof(xfs_fsop_setdm_handlereq_t))) in xfs_fssetdm_by_handle() 402 void __user *arg) in xfs_attrlist_by_handle() argument 406 struct xfs_fsop_attrlist_handlereq __user *p = arg; in xfs_attrlist_by_handle() 413 if (copy_from_user(&al_hreq, arg, sizeof(xfs_fsop_attrlist_handlereq_t))) in xfs_attrlist_by_handle() 529 void __user *arg) in xfs_attrmulti_by_handle() argument 540 if (copy_from_user(&am_hreq, arg, sizeof(xfs_fsop_attrmulti_handlereq_t))) in xfs_attrmulti_by_handle() 763 void __user *arg) in xfs_ioc_bulkstat() argument 780 if (copy_from_user(&bulkreq, arg, sizeof(xfs_fsop_bulkreq_t))) in xfs_ioc_bulkstat() 821 void __user *arg) in xfs_ioc_fsgeometry_v1() argument [all …]
|
D | xfs_ioctl32.c | 345 void __user *arg) in xfs_compat_attrlist_by_handle() argument 349 compat_xfs_fsop_attrlist_handlereq_t __user *p = arg; in xfs_compat_attrlist_by_handle() 356 if (copy_from_user(&al_hreq, arg, in xfs_compat_attrlist_by_handle() 402 void __user *arg) in xfs_compat_attrmulti_by_handle() argument 413 if (copy_from_user(&am_hreq, arg, in xfs_compat_attrmulti_by_handle() 496 void __user *arg) in xfs_compat_fssetdm_by_handle() argument 505 if (copy_from_user(&dmhreq, arg, in xfs_compat_fssetdm_by_handle() 540 void __user *arg = (void __user *)p; in xfs_file_compat_ioctl() local 595 if (xfs_compat_flock64_copyin(&bf, arg)) in xfs_file_compat_ioctl() 601 return xfs_compat_ioc_fsgeometry_v1(mp, arg); in xfs_file_compat_ioctl() [all …]
|
/fs/nfs/blocklayout/ |
D | extent_tree.c | 471 static void ext_tree_free_commitdata(struct nfs4_layoutcommit_args *arg, in ext_tree_free_commitdata() argument 474 if (arg->layoutupdate_pages != &arg->layoutupdate_page) { in ext_tree_free_commitdata() 478 put_page(arg->layoutupdate_pages[i]); in ext_tree_free_commitdata() 479 kfree(arg->layoutupdate_pages); in ext_tree_free_commitdata() 481 put_page(arg->layoutupdate_page); in ext_tree_free_commitdata() 519 ext_tree_prepare_commit(struct nfs4_layoutcommit_args *arg) in ext_tree_prepare_commit() argument 521 struct pnfs_block_layout *bl = BLK_LO2EXT(NFS_I(arg->inode)->layout); in ext_tree_prepare_commit() 528 arg->layoutupdate_page = alloc_page(GFP_NOFS); in ext_tree_prepare_commit() 529 if (!arg->layoutupdate_page) in ext_tree_prepare_commit() 531 start_p = page_address(arg->layoutupdate_page); in ext_tree_prepare_commit() [all …]
|
/fs/ext2/ |
D | ioctl.c | 20 long ext2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext2_ioctl() argument 28 ext2_debug ("cmd = %u, arg = %lu\n", cmd, arg); in ext2_ioctl() 34 return put_user(flags, (int __user *) arg); in ext2_ioctl() 47 if (get_user(flags, (int __user *) arg)) { in ext2_ioctl() 91 return put_user(inode->i_generation, (int __user *) arg); in ext2_ioctl() 100 if (get_user(generation, (int __user *) arg)) { in ext2_ioctl() 120 return put_user(rsv_window_size, (int __user *)arg); in ext2_ioctl() 131 if (get_user(rsv_window_size, (int __user *)arg)) in ext2_ioctl() 167 long ext2_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ext2_compat_ioctl() argument 186 return ext2_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in ext2_compat_ioctl()
|
/fs/fuse/ |
D | cuse.c | 153 unsigned long arg) in cuse_file_ioctl() argument 162 return fuse_do_ioctl(file, cmd, arg, flags); in cuse_file_ioctl() 166 unsigned long arg) in cuse_file_compat_ioctl() argument 175 return fuse_do_ioctl(file, cmd, arg, flags); in cuse_file_compat_ioctl() 310 struct cuse_init_out *arg = req->out.args[0].value; in cuse_process_init_reply() local 319 arg->major != FUSE_KERNEL_VERSION || arg->minor < 11) { in cuse_process_init_reply() 323 fc->minor = arg->minor; in cuse_process_init_reply() 324 fc->max_read = max_t(unsigned, arg->max_read, 4096); in cuse_process_init_reply() 325 fc->max_write = max_t(unsigned, arg->max_write, 4096); in cuse_process_init_reply() 328 cc->unrestricted_ioctl = arg->flags & CUSE_UNRESTRICTED_IOCTL; in cuse_process_init_reply() [all …]
|
D | inode.c | 822 sanitize_global_limit((unsigned *)kp->arg); in set_global_limit() 827 static void process_init_limits(struct fuse_conn *fc, struct fuse_init_out *arg) in process_init_limits() argument 831 if (arg->minor < 13) in process_init_limits() 837 if (arg->max_background) { in process_init_limits() 838 fc->max_background = arg->max_background; in process_init_limits() 843 if (arg->congestion_threshold) { in process_init_limits() 844 fc->congestion_threshold = arg->congestion_threshold; in process_init_limits() 854 struct fuse_init_out *arg = &req->misc.init_out; in process_init_reply() local 856 if (req->out.h.error || arg->major != FUSE_KERNEL_VERSION) in process_init_reply() 861 process_init_limits(fc, arg); in process_init_reply() [all …]
|
/fs/ceph/ |
D | ioctl.c | 16 static long ceph_ioctl_get_layout(struct file *file, void __user *arg) in ceph_ioctl_get_layout() argument 29 if (copy_to_user(arg, &l, sizeof(l))) in ceph_ioctl_get_layout() 63 static long ceph_ioctl_set_layout(struct file *file, void __user *arg) in ceph_ioctl_set_layout() argument 73 if (copy_from_user(&l, arg, sizeof(l))) in ceph_ioctl_set_layout() 135 static long ceph_ioctl_set_layout_policy (struct file *file, void __user *arg) in ceph_ioctl_set_layout_policy() argument 144 if (copy_from_user(&l, arg, sizeof(l))) in ceph_ioctl_set_layout_policy() 178 static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg) in ceph_ioctl_get_dataloc() argument 193 if (copy_from_user(&dl, arg, sizeof(dl))) in ceph_ioctl_get_dataloc() 236 if (copy_to_user(arg, &dl, sizeof(dl))) in ceph_ioctl_get_dataloc() 271 long ceph_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ceph_ioctl() argument [all …]
|
/fs/logfs/ |
D | logfs.h | 47 #define log_cond(cond, fmt, arg...) do { \ argument 49 printk(KERN_DEBUG fmt, ##arg); \ 52 #define log_super(fmt, arg...) \ argument 53 log_cond(LOGFS_DEBUG & LOGFS_DEBUG_SUPER, fmt, ##arg) 54 #define log_segment(fmt, arg...) \ argument 55 log_cond(LOGFS_DEBUG & LOGFS_DEBUG_SEGMENT, fmt, ##arg) 56 #define log_journal(fmt, arg...) \ argument 57 log_cond(LOGFS_DEBUG & LOGFS_DEBUG_JOURNAL, fmt, ##arg) 58 #define log_dir(fmt, arg...) \ argument 59 log_cond(LOGFS_DEBUG & LOGFS_DEBUG_DIR, fmt, ##arg) [all …]
|
/fs/reiserfs/ |
D | ioctl.c | 23 long reiserfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in reiserfs_ioctl() argument 34 if (arg) in reiserfs_ioctl() 51 err = put_user(flags, (int __user *)arg); in reiserfs_ioctl() 67 if (get_user(flags, (int __user *)arg)) { in reiserfs_ioctl() 104 err = put_user(inode->i_generation, (int __user *)arg); in reiserfs_ioctl() 114 if (get_user(inode->i_generation, (int __user *)arg)) { in reiserfs_ioctl() 134 unsigned long arg) in reiserfs_compat_ioctl() argument 160 return reiserfs_ioctl(file, cmd, (unsigned long) compat_ptr(arg)); in reiserfs_compat_ioctl()
|
/fs/notify/dnotify/ |
D | dnotify.c | 199 static __u32 convert_arg(unsigned long arg) in convert_arg() argument 203 if (arg & DN_MULTISHOT) in convert_arg() 205 if (arg & DN_DELETE) in convert_arg() 207 if (arg & DN_MODIFY) in convert_arg() 209 if (arg & DN_ACCESS) in convert_arg() 211 if (arg & DN_ATTRIB) in convert_arg() 213 if (arg & DN_RENAME) in convert_arg() 215 if (arg & DN_CREATE) in convert_arg() 258 int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg) in fcntl_dirnotify() argument 279 if ((arg & ~DN_MULTISHOT) == 0) { in fcntl_dirnotify() [all …]
|
/fs/ext4/ |
D | ioctl.c | 205 long ext4_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in ext4_ioctl() argument 212 ext4_debug("cmd = %u, arg = %lu\n", cmd, arg); in ext4_ioctl() 218 return put_user(flags, (int __user *) arg); in ext4_ioctl() 229 if (get_user(flags, (int __user *) arg)) in ext4_ioctl() 327 return put_user(inode->i_generation, (int __user *) arg); in ext4_ioctl() 347 if (get_user(generation, (int __user *) arg)) { in ext4_ioctl() 380 if (get_user(n_blocks_count, (__u32 __user *)arg)) { in ext4_ioctl() 420 (struct move_extent __user *)arg, sizeof(me))) in ext4_ioctl() 448 if (copy_to_user((struct move_extent __user *)arg, in ext4_ioctl() 464 if (copy_from_user(&input, (struct ext4_new_group_input __user *)arg, in ext4_ioctl() [all …]
|
/fs/efivarfs/ |
D | file.c | 108 efivarfs_ioc_getxflags(struct file *file, void __user *arg) in efivarfs_ioc_getxflags() argument 118 if (copy_to_user(arg, &flags, sizeof(flags))) in efivarfs_ioc_getxflags() 124 efivarfs_ioc_setxflags(struct file *file, void __user *arg) in efivarfs_ioc_setxflags() argument 134 if (copy_from_user(&flags, arg, sizeof(flags))) in efivarfs_ioc_setxflags() 163 void __user *arg = (void __user *)p; in efivarfs_file_ioctl() local 167 return efivarfs_ioc_getxflags(file, arg); in efivarfs_file_ioctl() 169 return efivarfs_ioc_setxflags(file, arg); in efivarfs_file_ioctl()
|
/fs/ncpfs/ |
D | ioctl.c | 36 struct ncp_fs_info __user *arg) in ncp_get_fs_info() argument 40 if (copy_from_user(&info, arg, sizeof(info))) in ncp_get_fs_info() 54 if (copy_to_user(arg, &info, sizeof(info))) in ncp_get_fs_info() 61 struct ncp_fs_info_v2 __user * arg) in ncp_get_fs_info_v2() argument 65 if (copy_from_user(&info2, arg, sizeof(info2))) in ncp_get_fs_info_v2() 79 if (copy_to_user(arg, &info2, sizeof(info2))) in ncp_get_fs_info_v2() 127 struct compat_ncp_fs_info_v2 __user * arg) in ncp_get_compat_fs_info_v2() argument 131 if (copy_from_user(&info2, arg, sizeof(info2))) in ncp_get_compat_fs_info_v2() 145 if (copy_to_user(arg, &info2, sizeof(info2))) in ncp_get_compat_fs_info_v2() 160 ncp_set_charsets(struct ncp_server* server, struct ncp_nls_ioctl __user *arg) in ncp_set_charsets() argument [all …]
|
/fs/cifs/ |
D | ioctl.c | 147 void __user *arg) in smb_mnt_get_fsinfo() argument 176 if (copy_to_user(arg, fsinf, sizeof(struct smb_mnt_fs_info))) in smb_mnt_get_fsinfo() 183 long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg) in cifs_ioctl() argument 213 (int __user *)arg); in cifs_ioctl() 223 (int __user *)arg); in cifs_ioctl() 232 if (get_user(ExtAttrBits, (int __user *)arg)) { in cifs_ioctl() 259 rc = cifs_ioctl_clone(xid, filep, arg, 0, 0, 0, false); in cifs_ioctl() 262 rc = cifs_ioctl_clone(xid, filep, arg, 0, 0, 0, true); in cifs_ioctl() 278 rc = smb_mnt_get_fsinfo(xid, tcon, (void __user *)arg); in cifs_ioctl()
|
/fs/f2fs/ |
D | file.c | 1593 static int f2fs_ioc_getflags(struct file *filp, unsigned long arg) in f2fs_ioc_getflags() argument 1598 return put_user(flags, (int __user *)arg); in f2fs_ioc_getflags() 1601 static int f2fs_ioc_setflags(struct file *filp, unsigned long arg) in f2fs_ioc_setflags() argument 1612 if (get_user(flags, (int __user *)arg)) in f2fs_ioc_setflags() 1651 static int f2fs_ioc_getversion(struct file *filp, unsigned long arg) in f2fs_ioc_getversion() argument 1655 return put_user(inode->i_generation, (int __user *)arg); in f2fs_ioc_getversion() 1842 static int f2fs_ioc_shutdown(struct file *filp, unsigned long arg) in f2fs_ioc_shutdown() argument 1853 if (get_user(in, (__u32 __user *)arg)) in f2fs_ioc_shutdown() 1903 static int f2fs_ioc_fitrim(struct file *filp, unsigned long arg) in f2fs_ioc_fitrim() argument 1917 if (copy_from_user(&range, (struct fstrim_range __user *)arg, in f2fs_ioc_fitrim() [all …]
|
/fs/btrfs/ |
D | ioctl.c | 190 static int btrfs_ioctl_getflags(struct file *file, void __user *arg) in btrfs_ioctl_getflags() argument 195 if (copy_to_user(arg, &flags, sizeof(flags))) in btrfs_ioctl_getflags() 215 static int btrfs_ioctl_setflags(struct file *file, void __user *arg) in btrfs_ioctl_setflags() argument 233 if (copy_from_user(&flags, arg, sizeof(flags))) in btrfs_ioctl_setflags() 367 static int btrfs_ioctl_getversion(struct file *file, int __user *arg) in btrfs_ioctl_getversion() argument 371 return put_user(inode->i_generation, arg); in btrfs_ioctl_getversion() 374 static noinline int btrfs_ioctl_fitrim(struct file *file, void __user *arg) in btrfs_ioctl_fitrim() argument 403 if (copy_from_user(&range, arg, sizeof(range))) in btrfs_ioctl_fitrim() 419 if (copy_to_user(arg, &range, sizeof(range))) in btrfs_ioctl_fitrim() 1481 void __user *arg) in btrfs_ioctl_resize() argument [all …]
|
/fs/udf/ |
D | file.c | 164 long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in udf_ioctl() argument 176 if (!arg) { in udf_ioctl() 184 if (copy_to_user((char __user *)arg, in udf_ioctl() 195 if (get_user(old_block, (long __user *)arg)) { in udf_ioctl() 202 result = put_user(new_block, (long __user *)arg); in udf_ioctl() 205 result = put_user(UDF_I(inode)->i_lenEAttr, (int __user *)arg); in udf_ioctl() 208 result = copy_to_user((char __user *)arg, in udf_ioctl()
|
/fs/ubifs/ |
D | ioctl.c | 147 long ubifs_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_ioctl() argument 157 return put_user(flags, (int __user *) arg); in ubifs_ioctl() 166 if (get_user(flags, (int __user *) arg)) in ubifs_ioctl() 191 long ubifs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in ubifs_compat_ioctl() argument 203 return ubifs_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in ubifs_compat_ioctl()
|