/fs/ext2/ |
D | acl.c | 20 ext2_acl_from_disk(const void *value, size_t size) in ext2_acl_from_disk() argument 22 const char *end = (char *)value + size; in ext2_acl_from_disk() 26 if (!value) in ext2_acl_from_disk() 30 if (((ext2_acl_header *)value)->a_version != in ext2_acl_from_disk() 33 value = (char *)value + sizeof(ext2_acl_header); in ext2_acl_from_disk() 44 (ext2_acl_entry *)value; in ext2_acl_from_disk() 45 if ((char *)value + sizeof(ext2_acl_entry_short) > end) in ext2_acl_from_disk() 54 value = (char *)value + in ext2_acl_from_disk() 59 value = (char *)value + sizeof(ext2_acl_entry); in ext2_acl_from_disk() 60 if ((char *)value > end) in ext2_acl_from_disk() [all …]
|
/fs/ext4/ |
D | acl.c | 18 ext4_acl_from_disk(const void *value, size_t size) in ext4_acl_from_disk() argument 20 const char *end = (char *)value + size; in ext4_acl_from_disk() 24 if (!value) in ext4_acl_from_disk() 28 if (((ext4_acl_header *)value)->a_version != in ext4_acl_from_disk() 31 value = (char *)value + sizeof(ext4_acl_header); in ext4_acl_from_disk() 42 (ext4_acl_entry *)value; in ext4_acl_from_disk() 43 if ((char *)value + sizeof(ext4_acl_entry_short) > end) in ext4_acl_from_disk() 53 value = (char *)value + in ext4_acl_from_disk() 58 value = (char *)value + sizeof(ext4_acl_entry); in ext4_acl_from_disk() 59 if ((char *)value > end) in ext4_acl_from_disk() [all …]
|
/fs/jffs2/ |
D | acl.c | 55 static struct posix_acl *jffs2_acl_from_medium(void *value, size_t size) in jffs2_acl_from_medium() argument 57 void *end = value + size; in jffs2_acl_from_medium() 58 struct jffs2_acl_header *header = value; in jffs2_acl_from_medium() 64 if (!value) in jffs2_acl_from_medium() 74 value += sizeof(struct jffs2_acl_header); in jffs2_acl_from_medium() 86 entry = value; in jffs2_acl_from_medium() 87 if (value + sizeof(struct jffs2_acl_entry_short) > end) in jffs2_acl_from_medium() 96 value += sizeof(struct jffs2_acl_entry_short); in jffs2_acl_from_medium() 100 value += sizeof(struct jffs2_acl_entry); in jffs2_acl_from_medium() 101 if (value > end) in jffs2_acl_from_medium() [all …]
|
D | compr_rtime.c | 47 unsigned char value; in jffs2_rtime_compress() local 49 value = data_in[pos]; in jffs2_rtime_compress() 53 backpos = positions[value]; in jffs2_rtime_compress() 54 positions[value]=pos; in jffs2_rtime_compress() 87 unsigned char value; in jffs2_rtime_decompress() local 91 value = data_in[pos++]; in jffs2_rtime_decompress() 92 cpage_out[outpos++] = value; /* first the verbatim copied byte */ in jffs2_rtime_decompress() 94 backoffs = positions[value]; in jffs2_rtime_decompress() 96 positions[value]=outpos; in jffs2_rtime_decompress()
|
/fs/reiserfs/ |
D | xattr_acl.c | 67 static struct posix_acl *reiserfs_posix_acl_from_disk(const void *value, size_t size) in reiserfs_posix_acl_from_disk() argument 69 const char *end = (char *)value + size; in reiserfs_posix_acl_from_disk() 73 if (!value) in reiserfs_posix_acl_from_disk() 77 if (((reiserfs_acl_header *) value)->a_version != in reiserfs_posix_acl_from_disk() 80 value = (char *)value + sizeof(reiserfs_acl_header); in reiserfs_posix_acl_from_disk() 90 reiserfs_acl_entry *entry = (reiserfs_acl_entry *) value; in reiserfs_posix_acl_from_disk() 91 if ((char *)value + sizeof(reiserfs_acl_entry_short) > end) in reiserfs_posix_acl_from_disk() 100 value = (char *)value + in reiserfs_posix_acl_from_disk() 105 value = (char *)value + sizeof(reiserfs_acl_entry); in reiserfs_posix_acl_from_disk() 106 if ((char *)value > end) in reiserfs_posix_acl_from_disk() [all …]
|
/fs/ksmbd/ |
D | ndr.c | 31 static int ndr_write_int16(struct ndr *n, __u16 value) in ndr_write_int16() argument 33 if (n->length <= n->offset + sizeof(value)) { in ndr_write_int16() 36 ret = try_to_realloc_ndr_blob(n, sizeof(value)); in ndr_write_int16() 41 *(__le16 *)ndr_get_field(n) = cpu_to_le16(value); in ndr_write_int16() 42 n->offset += sizeof(value); in ndr_write_int16() 46 static int ndr_write_int32(struct ndr *n, __u32 value) in ndr_write_int32() argument 48 if (n->length <= n->offset + sizeof(value)) { in ndr_write_int32() 51 ret = try_to_realloc_ndr_blob(n, sizeof(value)); in ndr_write_int32() 56 *(__le32 *)ndr_get_field(n) = cpu_to_le32(value); in ndr_write_int32() 57 n->offset += sizeof(value); in ndr_write_int32() [all …]
|
D | asn1.c | 163 const void *value, size_t vlen) in ksmbd_gssapi_this_mech() argument 167 oid = look_up_OID(value, vlen); in ksmbd_gssapi_this_mech() 171 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_gssapi_this_mech() 180 unsigned char tag, const void *value, in ksmbd_neg_token_init_mech_type() argument 187 oid = look_up_OID(value, vlen); in ksmbd_neg_token_init_mech_type() 199 sprint_oid(value, vlen, buf, sizeof(buf)); in ksmbd_neg_token_init_mech_type() 212 unsigned char tag, const void *value, in ksmbd_neg_token_alloc() argument 220 conn->mechToken = kmemdup_nul(value, vlen, GFP_KERNEL); in ksmbd_neg_token_alloc() 230 unsigned char tag, const void *value, in ksmbd_neg_token_init_mech_token() argument 233 return ksmbd_neg_token_alloc(context, hdrlen, tag, value, vlen); in ksmbd_neg_token_init_mech_token() [all …]
|
/fs/btrfs/ |
D | props.c | 20 int (*validate)(const char *value, size_t len); 21 int (*apply)(struct inode *inode, const char *value, size_t len); 58 int btrfs_validate_prop(const char *name, const char *value, size_t value_len) in btrfs_validate_prop() argument 72 return handler->validate(value, value_len); in btrfs_validate_prop() 76 const char *name, const char *value, size_t value_len, in btrfs_set_prop() argument 98 ret = btrfs_setxattr(trans, inode, handler->xattr_name, value, in btrfs_set_prop() 102 ret = handler->apply(inode, value, value_len); in btrfs_set_prop() 227 const char *value, in inode_prop_iterator() argument 234 ret = handler->apply(inode, value, len); in inode_prop_iterator() 255 static int prop_compression_validate(const char *value, size_t len) in prop_compression_validate() argument [all …]
|
D | acl.c | 23 char *value = NULL; in btrfs_get_acl() local 42 value = kzalloc(size, GFP_KERNEL); in btrfs_get_acl() 43 if (!value) in btrfs_get_acl() 45 size = btrfs_getxattr(inode, name, value, size); in btrfs_get_acl() 48 acl = posix_acl_from_xattr(&init_user_ns, value, size); in btrfs_get_acl() 53 kfree(value); in btrfs_get_acl() 64 char *value = NULL; in __btrfs_set_acl() local 88 value = kmalloc(size, GFP_KERNEL); in __btrfs_set_acl() 90 if (!value) { in __btrfs_set_acl() 95 ret = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __btrfs_set_acl() [all …]
|
/fs/fuse/ |
D | xattr.c | 14 int fuse_setxattr(struct inode *inode, const char *name, const void *value, in fuse_setxattr() argument 35 args.in_args[0].value = &inarg; in fuse_setxattr() 37 args.in_args[1].value = name; in fuse_setxattr() 39 args.in_args[2].value = value; in fuse_setxattr() 52 ssize_t fuse_getxattr(struct inode *inode, const char *name, void *value, in fuse_getxattr() argument 70 args.in_args[0].value = &inarg; in fuse_getxattr() 72 args.in_args[1].value = name; in fuse_getxattr() 78 args.out_args[0].value = value; in fuse_getxattr() 81 args.out_args[0].value = &outarg; in fuse_getxattr() 145 args.in_args[0].value = &inarg; in fuse_listxattr() [all …]
|
D | acl.c | 19 void *value = NULL; in fuse_get_acl() local 38 value = kmalloc(PAGE_SIZE, GFP_KERNEL); in fuse_get_acl() 39 if (!value) in fuse_get_acl() 41 size = fuse_getxattr(inode, name, value, PAGE_SIZE); in fuse_get_acl() 43 acl = posix_acl_from_xattr(fc->user_ns, value, size); in fuse_get_acl() 52 kfree(value); in fuse_get_acl() 86 void *value; in fuse_set_acl() local 91 value = kmalloc(size, GFP_KERNEL); in fuse_set_acl() 92 if (!value) in fuse_set_acl() 95 ret = posix_acl_to_xattr(fc->user_ns, acl, value, size); in fuse_set_acl() [all …]
|
D | backing.c | 65 .value = &foio->foi, in fuse_open_initialize() 69 .value = &foio->foo, in fuse_open_initialize() 80 const struct fuse_open_in *foi = fa->in_args[0].value; in fuse_open_backing() 132 struct fuse_open_out *foo = fa->out_args[0].value; in fuse_open_finalize() 161 .value = &fcoio->fci, in fuse_create_open_initialize() 165 .value = entry->d_name.name, in fuse_create_open_initialize() 169 .value = &fcoio->feo, in fuse_create_open_initialize() 173 .value = &fcoio->foo, in fuse_create_open_initialize() 217 const struct fuse_create_in *fci = fa->in_args[0].value; in fuse_create_open_backing() 225 backing_dentry = lookup_one_len(fa->in_args[1].value, in fuse_create_open_backing() [all …]
|
/fs/ |
D | xattr.c | 170 struct inode *inode, const char *name, const void *value, in __vfs_setxattr() argument 181 value = ""; /* empty EA, do not remove */ in __vfs_setxattr() 182 return handler->set(handler, mnt_userns, dentry, inode, name, value, in __vfs_setxattr() 206 const void *value, size_t size, int flags) in __vfs_setxattr_noperm() argument 216 error = __vfs_setxattr(mnt_userns, dentry, inode, name, value, in __vfs_setxattr_noperm() 220 security_inode_post_setxattr(dentry, name, value, in __vfs_setxattr_noperm() 233 error = security_inode_setsecurity(inode, suffix, value, in __vfs_setxattr_noperm() 258 const char *name, const void *value, size_t size, in __vfs_setxattr_locked() argument 268 error = security_inode_setxattr(mnt_userns, dentry, name, value, size, in __vfs_setxattr_locked() 277 error = __vfs_setxattr_noperm(mnt_userns, dentry, name, value, in __vfs_setxattr_locked() [all …]
|
/fs/cifs/ |
D | xattr.c | 45 const void *value, size_t size) in cifs_attrib_set() argument 48 __u32 *pattrib = (__u32 *)value; in cifs_attrib_set() 52 if ((value == NULL) || (size != sizeof(__u32))) in cifs_attrib_set() 69 const void *value, size_t size) in cifs_creation_time_set() argument 72 __u64 *pcreation_time = (__u64 *)value; in cifs_creation_time_set() 76 if ((value == NULL) || (size != sizeof(__u64))) in cifs_creation_time_set() 94 const char *name, const void *value, in cifs_xattr_set() argument 137 value, size); in cifs_xattr_set() 144 full_path, value, size); in cifs_xattr_set() 155 full_path, name, value, (__u16)size, in cifs_xattr_set() [all …]
|
/fs/ntfs3/ |
D | xattr.c | 305 size_t name_len, const void *value, in ntfs_set_ea() argument 365 !memcmp(ea->name + ea->name_len + 1, value, val_size)) { in ntfs_set_ea() 410 memcpy(new_ea->name + name_len + 1, value, val_size); in ntfs_set_ea() 592 void *value; in ntfs_set_acl_ex() local 628 value = NULL; in ntfs_set_acl_ex() 632 value = kmalloc(size, GFP_NOFS); in ntfs_set_acl_ex() 633 if (!value) in ntfs_set_acl_ex() 635 err = posix_acl_to_xattr(&init_user_ns, acl, value, size); in ntfs_set_acl_ex() 641 err = ntfs_set_ea(inode, name, name_len, value, size, flags); in ntfs_set_acl_ex() 653 kfree(value); in ntfs_set_acl_ex() [all …]
|
/fs/orangefs/ |
D | acl.c | 17 char *key = NULL, *value = NULL; in orangefs_get_acl() local 40 value = kmalloc(ORANGEFS_MAX_XATTR_VALUELEN, GFP_KERNEL); in orangefs_get_acl() 41 if (!value) in orangefs_get_acl() 49 ret = orangefs_inode_getxattr(inode, key, value, in orangefs_get_acl() 53 acl = posix_acl_from_xattr(&init_user_ns, value, ret); in orangefs_get_acl() 63 kfree(value); in orangefs_get_acl() 71 void *value = NULL; in __orangefs_set_acl() local 95 value = kmalloc(size, GFP_KERNEL); in __orangefs_set_acl() 96 if (!value) in __orangefs_set_acl() 99 error = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __orangefs_set_acl() [all …]
|
/fs/jfs/ |
D | acl.c | 22 char *value = NULL; in jfs_get_acl() local 41 value = kmalloc(size, GFP_KERNEL); in jfs_get_acl() 42 if (!value) in jfs_get_acl() 44 size = __jfs_getxattr(inode, ea_name, value, size); in jfs_get_acl() 53 acl = posix_acl_from_xattr(&init_user_ns, value, size); in jfs_get_acl() 55 kfree(value); in jfs_get_acl() 65 char *value = NULL; in __jfs_set_acl() local 80 value = kmalloc(size, GFP_KERNEL); in __jfs_set_acl() 81 if (!value) in __jfs_set_acl() 83 rc = posix_acl_to_xattr(&init_user_ns, acl, value, size); in __jfs_set_acl() [all …]
|
/fs/hfs/ |
D | attr.c | 23 const void *value, size_t size, int flags) in __hfs_setxattr() argument 47 memcpy(&file->UsrWds.fdType, value, 4); in __hfs_setxattr() 54 memcpy(&file->UsrWds.fdCreator, value, 4); in __hfs_setxattr() 69 void *value, size_t size) in __hfs_getxattr() argument 95 memcpy(value, &file->UsrWds.fdType, 4); in __hfs_getxattr() 103 memcpy(value, &file->UsrWds.fdCreator, 4); in __hfs_getxattr() 118 const char *name, void *value, size_t size) in hfs_xattr_get() argument 120 return __hfs_getxattr(inode, handler->flags, value, size); in hfs_xattr_get() 126 const char *name, const void *value, size_t size, in hfs_xattr_set() argument 129 if (!value) in hfs_xattr_set() [all …]
|
/fs/ceph/ |
D | acl.c | 37 char *value = NULL; in ceph_get_acl() local 57 value = kzalloc(size, GFP_NOFS); in ceph_get_acl() 58 if (!value) in ceph_get_acl() 60 size = __ceph_getxattr(inode, name, value, size); in ceph_get_acl() 65 kfree(value); in ceph_get_acl() 66 value = NULL; in ceph_get_acl() 71 acl = posix_acl_from_xattr(&init_user_ns, value, size); in ceph_get_acl() 80 kfree(value); in ceph_get_acl() 93 char *value = NULL; in ceph_set_acl() local 127 value = kmalloc(size, GFP_NOFS); in ceph_set_acl() [all …]
|
/fs/ocfs2/ |
D | acl.c | 33 static struct posix_acl *ocfs2_acl_from_xattr(const void *value, size_t size) in ocfs2_acl_from_xattr() argument 38 if (!value) in ocfs2_acl_from_xattr() 50 (struct ocfs2_acl_entry *)value; in ocfs2_acl_from_xattr() 68 value += sizeof(struct posix_acl_entry); in ocfs2_acl_from_xattr() 117 char *value = NULL; in ocfs2_get_acl_nolock() local 134 value = kmalloc(retval, GFP_NOFS); in ocfs2_get_acl_nolock() 135 if (!value) in ocfs2_get_acl_nolock() 138 "", value, retval); in ocfs2_get_acl_nolock() 142 acl = ocfs2_acl_from_xattr(value, retval); in ocfs2_get_acl_nolock() 148 kfree(value); in ocfs2_get_acl_nolock() [all …]
|
/fs/debugfs/ |
D | file.c | 421 struct dentry *parent, void *value, in debugfs_create_mode_unsafe() argument 428 return debugfs_create_file_unsafe(name, mode, parent, value, in debugfs_create_mode_unsafe() 432 return debugfs_create_file_unsafe(name, mode, parent, value, in debugfs_create_mode_unsafe() 435 return debugfs_create_file_unsafe(name, mode, parent, value, fops); in debugfs_create_mode_unsafe() 467 u8 *value) in debugfs_create_u8() argument 469 debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u8, in debugfs_create_u8() 503 u16 *value) in debugfs_create_u16() argument 505 debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u16, in debugfs_create_u16() 539 u32 *value) in debugfs_create_u32() argument 541 debugfs_create_mode_unsafe(name, mode, parent, value, &fops_u32, in debugfs_create_u32() [all …]
|
/fs/ntfs/ |
D | bitmap.c | 34 const s64 count, const u8 value, const bool is_rollback) in __ntfs_bitmap_set_bits_in_run() argument 47 (unsigned long long)cnt, (unsigned int)value, in __ntfs_bitmap_set_bits_in_run() 51 BUG_ON(value > 1); in __ntfs_bitmap_set_bits_in_run() 81 if (value) in __ntfs_bitmap_set_bits_in_run() 98 memset(kaddr + pos, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run() 122 memset(kaddr, value ? 0xff : 0, len); in __ntfs_bitmap_set_bits_in_run() 138 if (value) in __ntfs_bitmap_set_bits_in_run() 161 value ? 0 : 1, true); in __ntfs_bitmap_set_bits_in_run()
|
/fs/kernfs/ |
D | inode.c | 301 void *value, size_t size) in kernfs_xattr_get() argument 307 return simple_xattr_get(&attrs->xattrs, name, value, size); in kernfs_xattr_get() 311 const void *value, size_t size, int flags) in kernfs_xattr_set() argument 317 return simple_xattr_set(&attrs->xattrs, name, value, size, flags, NULL); in kernfs_xattr_set() 322 const char *suffix, void *value, size_t size) in kernfs_vfs_xattr_get() argument 327 return kernfs_xattr_get(kn, name, value, size); in kernfs_vfs_xattr_get() 333 const char *suffix, const void *value, in kernfs_vfs_xattr_set() argument 339 return kernfs_xattr_set(kn, name, value, size, flags); in kernfs_vfs_xattr_set() 345 const void *value, size_t size, int flags) in kernfs_vfs_user_xattr_add() argument 362 ret = simple_xattr_set(xattrs, full_name, value, size, flags, in kernfs_vfs_user_xattr_add() [all …]
|
/fs/f2fs/ |
D | acl.c | 46 static struct posix_acl *f2fs_acl_from_disk(const char *value, size_t size) in f2fs_acl_from_disk() argument 50 struct f2fs_acl_header *hdr = (struct f2fs_acl_header *)value; in f2fs_acl_from_disk() 52 const char *end = value + size; in f2fs_acl_from_disk() 172 void *value = NULL; in __f2fs_get_acl() local 181 value = f2fs_kmalloc(F2FS_I_SB(inode), retval, GFP_F2FS_ZERO); in __f2fs_get_acl() 182 if (!value) in __f2fs_get_acl() 184 retval = f2fs_getxattr(inode, name_index, "", value, in __f2fs_get_acl() 189 acl = f2fs_acl_from_disk(value, retval); in __f2fs_get_acl() 194 kfree(value); in __f2fs_get_acl() 234 void *value = NULL; in __f2fs_set_acl() local [all …]
|
/fs/ufs/ |
D | util.h | 58 struct ufs_super_block_third *usb3, s32 value) in ufs_set_fs_state() argument 63 usb1->fs_u0.fs_sun.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state() 68 usb3->fs_un2.fs_sun.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state() 71 usb1->fs_u1.fs_sunx86.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state() 74 usb3->fs_un2.fs_44.fs_state = cpu_to_fs32(sb, value); in ufs_set_fs_state() 147 ufs_set_de_namlen(struct super_block *sb, struct ufs_dir_entry *de, u16 value) in ufs_set_de_namlen() argument 150 de->d_u.d_namlen = cpu_to_fs16(sb, value); in ufs_set_de_namlen() 152 de->d_u.d_44.d_namlen = value; /* XXX this seems wrong */ in ufs_set_de_namlen() 207 ufs_set_inode_uid(struct super_block *sb, struct ufs_inode *inode, u32 value) in ufs_set_inode_uid() argument 211 inode->ui_u3.ui_44.ui_uid = cpu_to_fs32(sb, value); in ufs_set_inode_uid() [all …]
|