Home
last modified time | relevance | path

Searched refs:value_len (Results 1 – 25 of 26) sorted by relevance

12

/fs/9p/
Dxattr.c97 const void *value, size_t value_len, int flags) in v9fs_xattr_set() argument
100 return v9fs_fid_xattr_set(fid, name, value, value_len, flags); in v9fs_xattr_set()
104 const void *value, size_t value_len, int flags) in v9fs_fid_xattr_set() argument
106 struct kvec kvec = {.iov_base = (void *)value, .iov_len = value_len}; in v9fs_fid_xattr_set()
110 iov_iter_kvec(&from, WRITE | ITER_KVEC, &kvec, 1, value_len); in v9fs_fid_xattr_set()
113 name, value_len, flags); in v9fs_fid_xattr_set()
123 retval = p9_client_xattrcreate(fid, name, value_len, flags); in v9fs_fid_xattr_set()
/fs/btrfs/tests/
Dextent-buffer-tests.c39 u32 value_len = strlen(value); in test_btrfs_split_item() local
77 setup_items_for_insert(root, path, &key, &value_len, value_len, in test_btrfs_split_item()
78 value_len + sizeof(struct btrfs_item), 1); in test_btrfs_split_item()
81 value_len); in test_btrfs_split_item()
Dinode-tests.c36 u32 value_len = sizeof(struct btrfs_file_extent_item); in insert_extent() local
39 value_len += len; in insert_extent()
49 setup_items_for_insert(root, &path, &key, &value_len, value_len, in insert_extent()
50 value_len + sizeof(struct btrfs_item), 1); in insert_extent()
69 u32 value_len = 0; in insert_inode_item_key() local
80 setup_items_for_insert(root, &path, &key, &value_len, value_len, in insert_inode_item_key()
81 value_len + sizeof(struct btrfs_item), 1); in insert_inode_item_key()
/fs/btrfs/
Dprops.c105 size_t value_len, in __btrfs_set_prop() argument
118 if (value_len == 0) { in __btrfs_set_prop()
130 ret = handler->validate(value, value_len); in __btrfs_set_prop()
134 value, value_len, flags); in __btrfs_set_prop()
137 ret = handler->apply(inode, value, value_len); in __btrfs_set_prop()
152 size_t value_len, in btrfs_set_prop() argument
155 return __btrfs_set_prop(NULL, inode, name, value, value_len, flags); in btrfs_set_prop()
Dprops.h29 size_t value_len,
Dxattr.c454 xattr->value, xattr->value_len, 0); in btrfs_initxattrs()
/fs/ext2/
Dxattr.c361 const void *value, size_t value_len, int flags) in ext2_xattr_set() argument
384 name_index, name, value, (long)value_len); in ext2_xattr_set()
387 value_len = 0; in ext2_xattr_set()
391 if (name_len > 255 || value_len > sb->s_blocksize) in ext2_xattr_set()
480 if (free < EXT2_XATTR_LEN(name_len) + EXT2_XATTR_SIZE(value_len)) in ext2_xattr_set()
548 if (size == EXT2_XATTR_SIZE(value_len)) { in ext2_xattr_set()
551 here->e_value_size = cpu_to_le32(value_len); in ext2_xattr_set()
554 memcpy(val, value, value_len); in ext2_xattr_set()
586 here->e_value_size = cpu_to_le32(value_len); in ext2_xattr_set()
587 if (value_len) { in ext2_xattr_set()
[all …]
Dxattr_security.c38 xattr->value_len, 0); in ext2_initxattrs()
/fs/ext4/
Dxattr.c670 EXT4_XATTR_SIZE(i->value_len)) in ext4_xattr_set_entry()
691 if (i->value && size == EXT4_XATTR_SIZE(i->value_len)) { in ext4_xattr_set_entry()
695 cpu_to_le32(i->value_len); in ext4_xattr_set_entry()
702 memcpy(val, i->value, i->value_len); in ext4_xattr_set_entry()
736 s->here->e_value_size = cpu_to_le32(i->value_len); in ext4_xattr_set_entry()
737 if (i->value_len) { in ext4_xattr_set_entry()
738 size_t size = EXT4_XATTR_SIZE(i->value_len); in ext4_xattr_set_entry()
747 memcpy(val, i->value, i->value_len); in ext4_xattr_set_entry()
767 i->name_index, i->name, i->value, (long)i->value_len); in ext4_xattr_block_find()
815 if (i->value && i->value_len > sb->s_blocksize) in ext4_xattr_block_set()
[all …]
Dxattr_security.c45 xattr->value_len, 0); in ext4_initxattrs()
Dinline.c279 i.value_len = len; in ext4_create_inline_data()
357 i.value_len = len; in ext4_update_inline_data()
412 .value_len = 0, in ext4_destroy_inline_data_nolock()
1915 int inline_size, value_len, needed_blocks, no_expand; in ext4_inline_data_truncate() local
1958 value_len = le32_to_cpu(is.s.here->e_value_size); in ext4_inline_data_truncate()
1959 value = kmalloc(value_len, GFP_NOFS); in ext4_inline_data_truncate()
1964 value, value_len)) in ext4_inline_data_truncate()
1968 i.value_len = i_size > EXT4_MIN_INLINE_DATA_SIZE ? in ext4_inline_data_truncate()
Dxattr.h83 size_t value_len; member
/fs/jffs2/
Dxattr.c92 c->xdatum_mem_usage -= (xd->name_len + 1 + xd->value_len); in unload_xattr_datum()
161 totlen = PAD(sizeof(rx) + rx.name_len + 1 + je16_to_cpu(rx.value_len)); in do_verify_xattr_datum()
179 xd->value_len = je16_to_cpu(rx.value_len); in do_verify_xattr_datum()
215 length = xd->name_len + 1 + xd->value_len; in do_load_xattr_datum()
247 xd->hashkey = xattr_datum_hashkey(xd->xprefix, xd->xname, xd->xvalue, xd->value_len); in do_load_xattr_datum()
299 vecs[1].iov_len = xd->name_len + 1 + xd->value_len; in save_xattr_datum()
313 rx.value_len = cpu_to_je16(xd->value_len); in save_xattr_datum()
352 && xd->value_len==xsize in create_xattr_datum()
384 xd->value_len = xsize; in create_xattr_datum()
385 xd->data_crc = crc32(0, data, xd->name_len + 1 + xd->value_len); in create_xattr_datum()
[all …]
Dsecurity.c35 xattr->value_len, 0); in jffs2_initxattrs()
Dxattr.h41 uint32_t value_len; /* length of xvalue */ member
Dscan.c348 + rx->name_len + 1 + je16_to_cpu(rx->value_len)); in jffs2_scan_xattr_node()
370 xd->value_len = je16_to_cpu(rx->value_len); in jffs2_scan_xattr_node()
/fs/jfs/
Dxattr.c667 const void *value, size_t value_len, int flags) in __jfs_setxattr() argument
721 new_size += sizeof (struct jfs_ea) + namelen + 1 + value_len; in __jfs_setxattr()
760 if (value_len >= USHRT_MAX) { in __jfs_setxattr()
768 ea->valuelen = (cpu_to_le16(value_len)); in __jfs_setxattr()
771 if (value_len) in __jfs_setxattr()
772 memcpy(&ea->name[namelen + 1], value, value_len); in __jfs_setxattr()
1030 xattr->value, xattr->value_len, 0); in jfs_initxattrs()
/fs/ocfs2/
Dxattr.h37 size_t value_len; member
Dxattr.c228 static int namevalue_size(int name_len, uint64_t value_len) in namevalue_size() argument
230 if (value_len > OCFS2_XATTR_INLINE_SIZE) in namevalue_size()
233 return OCFS2_XATTR_SIZE(name_len) + OCFS2_XATTR_SIZE(value_len); in namevalue_size()
243 u64 value_len = le64_to_cpu(xe->xe_value_size); in namevalue_size_xe() local
245 BUG_ON((value_len > OCFS2_XATTR_INLINE_SIZE) && in namevalue_size_xe()
247 return namevalue_size(xe->xe_name_len, value_len); in namevalue_size_xe()
568 static int ocfs2_xattr_entry_real_size(int name_len, size_t value_len) in ocfs2_xattr_entry_real_size() argument
570 return namevalue_size(name_len, value_len) + in ocfs2_xattr_entry_real_size()
595 si->value_len); in ocfs2_calc_security_init()
613 if (si->value_len > OCFS2_XATTR_INLINE_SIZE) { in ocfs2_calc_security_init()
[all …]
/fs/hfsplus/
Dxattr_security.c59 xattr->value, xattr->value_len, 0); in hfsplus_initxattrs()
/fs/cifs/
Dcifssmb.c6289 __u16 value_len; in CIFSSMBQAllEAs() local
6301 value_len = le16_to_cpu(temp_fea->value_len); in CIFSSMBQAllEAs()
6302 list_len -= name_len + 1 + value_len; in CIFSSMBQAllEAs()
6313 rc = value_len; in CIFSSMBQAllEAs()
6316 if ((size_t)value_len > buf_size) { in CIFSSMBQAllEAs()
6320 memcpy(EAData, temp_ptr, value_len); in CIFSSMBQAllEAs()
6342 temp_ptr += name_len + 1 + value_len; in CIFSSMBQAllEAs()
6434 parm_data->list[0].value_len = cpu_to_le16(ea_value_len); in CIFSSMBSetEA()
/fs/ubifs/
Dxattr.c554 xattr->value_len, 0, false); in init_xattrs()
/fs/f2fs/
Dxattr.c123 xattr->value_len, (struct page *)page, 0); in f2fs_initxattrs()
/fs/xfs/
Dxfs_iops.c74 xattr->value_len, ATTR_SECURE); in xfs_initxattrs()
/fs/gfs2/
Dinode.c558 xattr->value_len, 0, in gfs2_initxattrs()

12