Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 25 of 42) sorted by relevance

12

/fs/ubifs/
Dxattr.c89 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in create_xattr()
134 ui->data_len = size; in create_xattr()
199 .dirtied_ino_d = ALIGN(size, 8) + ALIGN(host_ui->data_len, 8) }; in change_xattr()
201 ubifs_assert(c, ui->data_len == inode->i_size); in change_xattr()
215 old_size = ui->data_len; in change_xattr()
216 ui->data_len = size; in change_xattr()
359 ubifs_assert(c, inode->i_size == ui->data_len); in ubifs_xattr_get()
360 ubifs_assert(c, ubifs_inode(host)->xattr_size > ui->data_len); in ubifs_xattr_get()
365 if (ui->data_len > size) { in ubifs_xattr_get()
370 memcpy(buf, ui->data, ui->data_len); in ubifs_xattr_get()
[all …]
Djournal.c449 int data_len = 0, last_reference = !inode->i_nlink; in pack_inode() local
468 ino->data_len = cpu_to_le32(ui->data_len); in pack_inode()
479 memcpy(ino->data, ui->data, ui->data_len); in pack_inode()
480 data_len = ui->data_len; in pack_inode()
483 ubifs_prep_grp_node(c, ino, UBIFS_INO_NODE_SZ + data_len, last); in pack_inode()
566 ilen += ui->data_len; in ubifs_jnl_update()
576 len += ALIGN(host_ui->data_len, 8) + ubifs_auth_node_sz(c); in ubifs_jnl_update()
578 len += host_ui->data_len; in ubifs_jnl_update()
677 UBIFS_INO_NODE_SZ + host_ui->data_len, hash_ino_host); in ubifs_jnl_update()
857 ilen += ui->data_len; in ubifs_jnl_write_inode()
[all …]
Dsuper.c74 if (ui->data_len < 0 || ui->data_len > UBIFS_MAX_INO_DATA) in validate_inode()
136 ui->data_len = le32_to_cpu(ino->data_len); in ubifs_iget()
157 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget()
162 memcpy(ui->data, ino->data, ui->data_len); in ubifs_iget()
163 ((char *)ui->data)[ui->data_len] = '\0'; in ubifs_iget()
164 } else if (ui->data_len != 0) { in ubifs_iget()
172 if (ui->data_len != 0) { in ubifs_iget()
179 if (ui->data_len <= 0 || ui->data_len > UBIFS_MAX_INO_DATA) { in ubifs_iget()
183 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget()
188 memcpy(ui->data, ino->data, ui->data_len); in ubifs_iget()
[all …]
Ddir.c694 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in ubifs_link()
1066 ui->data_len = devlen; in ubifs_mknod()
1165 ui->data_len = disk_link.len - 1; in ubifs_symlink()
1261 .dirtied_ino_d = ALIGN(old_inode_ui->data_len, 8) }; in do_rename()
1338 whiteout_ui->data_len = ubifs_encode_dev(dev, MKDEV(0, 0)); in do_rename()
1416 ALIGN(ubifs_inode(whiteout)->data_len, 8) }; in do_rename()
1421 whiteout_ui->data_len = 0; in do_rename()
Dfile.c1225 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in do_setattr()
1381 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in ubifs_update_time()
1428 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in update_mctime()
1637 return fscrypt_get_symlink(inode, ui->data, ui->data_len, done); in ubifs_get_link()
Dioctl.c104 .dirtied_ino_d = ui->data_len }; in setflags()
/fs/
Dbinfmt_flat.c430 u32 text_len, data_len, bss_len, stack_len, full_data, flags; in load_flat_file() local
443 data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start); in load_flat_file()
453 full_data = data_len + relocs * sizeof(unsigned long); in load_flat_file()
508 if ((text_len | data_len | bss_len | stack_len | full_data) >> 28) { in load_flat_file()
530 if (data_len + bss_len > rlim) { in load_flat_file()
574 len = data_len + extra; in load_flat_file()
591 data_len + bss_len + stack_len, datapos); in load_flat_file()
618 len = text_len + data_len + extra; in load_flat_file()
708 vm_munmap(textpos, text_len + data_len + extra); in load_flat_file()
722 current->mm->end_data = datapos + data_len; in load_flat_file()
[all …]
/fs/btrfs/
Dprops.c165 u32 data_len = btrfs_dir_data_len(leaf, di); in iterate_object_props() local
169 this_len = sizeof(*di) + name_len + data_len; in iterate_object_props()
195 if (data_len > value_buf_len) { in iterate_object_props()
197 value_buf_len = data_len; in iterate_object_props()
198 value_buf = kmalloc(data_len, GFP_NOFS); in iterate_object_props()
204 read_extent_buffer(leaf, value_buf, data_ptr, data_len); in iterate_object_props()
206 iterator(ctx, handler, value_buf, data_len); in iterate_object_props()
Ddir-item.c59 const void *data, u16 data_len) in btrfs_insert_xattr_item() argument
69 if (name_len + data_len > BTRFS_MAX_XATTR_SIZE(root->fs_info)) in btrfs_insert_xattr_item()
76 data_size = sizeof(*dir_item) + name_len + data_len; in btrfs_insert_xattr_item()
89 btrfs_set_dir_data_len(leaf, dir_item, data_len); in btrfs_insert_xattr_item()
94 write_extent_buffer(leaf, data, data_ptr, data_len); in btrfs_insert_xattr_item()
Ddelayed-inode.c315 static struct btrfs_delayed_item *btrfs_alloc_delayed_item(u32 data_len) in btrfs_alloc_delayed_item() argument
318 item = kmalloc(sizeof(*item) + data_len, GFP_NOFS); in btrfs_alloc_delayed_item()
320 item->data_len = data_len; in btrfs_alloc_delayed_item()
723 while (total_size + next->data_len + sizeof(struct btrfs_item) <= in btrfs_batch_insert_items()
725 total_data_size += next->data_len; in btrfs_batch_insert_items()
726 total_size += next->data_len + sizeof(struct btrfs_item); in btrfs_batch_insert_items()
767 data_size[i] = next->data_len; in btrfs_batch_insert_items()
781 curr->data_len); in btrfs_batch_insert_items()
811 delayed_item->data_len); in btrfs_insert_delayed_item()
820 delayed_item->data_len); in btrfs_insert_delayed_item()
Dtree-checker.c326 u32 data_len; in check_dir_item() local
369 data_len = btrfs_dir_data_len(leaf, di); in check_dir_item()
376 if (name_len + data_len > BTRFS_MAX_XATTR_SIZE(fs_info)) { in check_dir_item()
379 name_len + data_len, in check_dir_item()
384 if (data_len && dir_type != BTRFS_FT_XATTR) { in check_dir_item()
387 data_len); in check_dir_item()
391 total_size = sizeof(*di) + name_len + data_len; in check_dir_item()
Dsend.c999 const char *data, int data_len,
1020 u32 data_len; in iterate_dir_item() local
1052 data_len = btrfs_dir_data_len(eb, di); in iterate_dir_item()
1061 if (name_len + data_len > in iterate_dir_item()
1070 if (name_len + data_len > PATH_MAX) { in iterate_dir_item()
1076 if (name_len + data_len > buf_len) { in iterate_dir_item()
1077 buf_len = name_len + data_len; in iterate_dir_item()
1099 name_len + data_len); in iterate_dir_item()
1101 len = sizeof(*di) + name_len + data_len; in iterate_dir_item()
1106 data_len, type, ctx); in iterate_dir_item()
[all …]
Ddelayed-inode.h72 u32 data_len; member
Dxattr.c317 u16 data_len = btrfs_dir_data_len(leaf, di); in btrfs_listxattr() local
318 u32 this_len = sizeof(*di) + name_len + data_len; in btrfs_listxattr()
/fs/incfs/
Dintegrity.c18 size_t data_len = 0; in incfs_validate_pkcs7_signature() local
29 err = pkcs7_get_content_data(pkcs7, &data, &data_len, NULL); in incfs_validate_pkcs7_signature()
30 if (err || data_len == 0 || data == NULL) { in incfs_validate_pkcs7_signature()
42 if (data_len != root_hash.len + add_data.len) { in incfs_validate_pkcs7_signature()
Ddata_mgmt.c738 bfc, range(data, block->data_len), block->block_index, in incfs_process_new_data_block()
811 + block->data_len) { in incfs_process_new_hash_block()
819 bfc, range(data, block->data_len), block->block_index, in incfs_process_new_hash_block()
/fs/ecryptfs/
Dmessaging.c234 msg_size = (sizeof(*msg) + msg->data_len); in ecryptfs_process_response()
260 ecryptfs_send_message_locked(char *data, int data_len, u8 msg_type, in ecryptfs_send_message_locked() argument
282 rc = ecryptfs_send_miscdev(data, data_len, *msg_ctx, msg_type, 0, in ecryptfs_send_message_locked()
301 int ecryptfs_send_message(char *data, int data_len, in ecryptfs_send_message() argument
307 rc = ecryptfs_send_message_locked(data, data_len, ECRYPTFS_MSG_REQUEST, in ecryptfs_send_message()
Dkeystore.c148 size_t data_len; in write_tag_64_packet() local
161 data_len = (5 + ECRYPTFS_SIG_SIZE_HEX in write_tag_64_packet()
163 *packet = kmalloc(data_len, GFP_KERNEL); in write_tag_64_packet()
204 size_t data_len; in parse_tag_65_packet() local
218 message_len = msg->data_len; in parse_tag_65_packet()
235 rc = ecryptfs_parse_packet_length(&data[i], &m_size, &data_len); in parse_tag_65_packet()
241 i += data_len; in parse_tag_65_packet()
291 size_t data_len; in write_tag_66_packet() local
305 data_len = (5 + ECRYPTFS_SIG_SIZE_HEX + crypt_stat->key_size); in write_tag_66_packet()
306 *packet = kmalloc(data_len, GFP_KERNEL); in write_tag_66_packet()
[all …]
Dmiscdev.c159 msg_ctx->msg->data_len = data_size; in ecryptfs_send_miscdev()
327 if ((sizeof(*msg) + msg->data_len) != data_size) { in ecryptfs_miscdev_response()
330 (sizeof(*msg) + msg->data_len), data_size); in ecryptfs_miscdev_response()
Decryptfs_kernel.h375 u32 data_len; member
620 int ecryptfs_send_message(char *data, int data_len,
633 static inline int ecryptfs_send_message(char *data, int data_len, in ecryptfs_send_message() argument
/fs/ocfs2/cluster/
Dtcp.c77 be16_to_cpu(__hdr->magic), be16_to_cpu(__hdr->data_len), \
960 static void o2net_init_msg(struct o2net_msg *msg, u16 data_len, u16 msg_type, u32 key) in o2net_init_msg() argument
964 msg->data_len = cpu_to_be16(data_len); in o2net_init_msg()
1159 hdr->data_len = 0; in o2net_send_status_magic()
1217 if (be16_to_cpu(hdr->data_len) > nmh->nh_max_len) in o2net_process_message()
1227 be16_to_cpu(hdr->data_len), in o2net_process_message()
1373 if (be16_to_cpu(hdr->data_len) > in o2net_advance_rx()
1393 if (sc->sc_page_off - sizeof(struct o2net_msg) < be16_to_cpu(hdr->data_len)) { in o2net_advance_rx()
1396 datalen = (sizeof(struct o2net_msg) + be16_to_cpu(hdr->data_len)) - in o2net_advance_rx()
1405 if (sc->sc_page_off - sizeof(struct o2net_msg) == be16_to_cpu(hdr->data_len)) { in o2net_advance_rx()
Dtcp.h28 __be16 data_len; member
/fs/ntfs/
Dindex.h65 u16 data_len; member
Dquota.c53 if (ictx->data_len < offsetof(QUOTA_CONTROL_ENTRY, sid)) { in ntfs_mark_quotas_out_of_date()
/fs/gfs2/
Dxattr.c680 unsigned int data_len = er->er_data_len; in ea_write() local
701 copy = data_len > sdp->sd_jbsize ? sdp->sd_jbsize : in ea_write()
702 data_len; in ea_write()
710 data_len -= copy; in ea_write()
715 gfs2_assert_withdraw(sdp, !data_len); in ea_write()

12