Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 25 of 45) 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()
214 old_size = ui->data_len; in change_xattr()
215 ui->data_len = size; in change_xattr()
360 ubifs_assert(c, inode->i_size == ui->data_len); in ubifs_xattr_get()
361 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()
678 UBIFS_INO_NODE_SZ + host_ui->data_len, hash_ino_host); in ubifs_jnl_update()
858 ilen += ui->data_len; in ubifs_jnl_write_inode()
[all …]
Dsuper.c92 if (ui->data_len < 0 || ui->data_len > UBIFS_MAX_INO_DATA) in validate_inode()
154 ui->data_len = le32_to_cpu(ino->data_len); in ubifs_iget()
175 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget()
180 memcpy(ui->data, ino->data, ui->data_len); in ubifs_iget()
181 ((char *)ui->data)[ui->data_len] = '\0'; in ubifs_iget()
182 } else if (ui->data_len != 0) { in ubifs_iget()
190 if (ui->data_len != 0) { in ubifs_iget()
197 if (ui->data_len <= 0 || ui->data_len > UBIFS_MAX_INO_DATA) { in ubifs_iget()
201 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget()
206 memcpy(ui->data, ino->data, ui->data_len); in ubifs_iget()
[all …]
Ddir.c729 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in ubifs_link()
1103 ui->data_len = devlen; in ubifs_mknod()
1202 ui->data_len = disk_link.len - 1; in ubifs_symlink()
1300 .dirtied_ino_d = ALIGN(old_inode_ui->data_len, 8) }; in do_rename()
1324 req.dirtied_ino_d = ALIGN(ubifs_inode(new_inode)->data_len, 8); in do_rename()
1386 whiteout_ui->data_len = ubifs_encode_dev(dev, MKDEV(0, 0)); in do_rename()
1391 wht_req.new_ino_d = ALIGN(whiteout_ui->data_len, 8); in do_rename()
Dfile.c1227 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in do_setattr()
1384 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in ubifs_update_time()
1427 .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()
/fs/
Dbinfmt_flat.c465 u32 text_len, data_len, bss_len, stack_len, full_data, flags; in load_flat_file() local
478 data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start); in load_flat_file()
488 full_data = data_len + relocs * sizeof(unsigned long); in load_flat_file()
543 if ((text_len | data_len | bss_len | stack_len | full_data) >> 28) { in load_flat_file()
565 if (data_len + bss_len > rlim) { in load_flat_file()
609 len = data_len + extra + in load_flat_file()
629 data_len + bss_len + stack_len, datapos); in load_flat_file()
656 len = text_len + data_len + extra + in load_flat_file()
748 vm_munmap(textpos, text_len + data_len + extra + in load_flat_file()
763 current->mm->end_data = datapos + data_len; in load_flat_file()
[all …]
/fs/ceph/
Dmetric.c53 cap->header.data_len = cpu_to_le32(sizeof(*cap) - header_len); in ceph_mdsc_send_metrics()
64 read->header.data_len = cpu_to_le32(sizeof(*read) - header_len); in ceph_mdsc_send_metrics()
76 write->header.data_len = cpu_to_le32(sizeof(*write) - header_len); in ceph_mdsc_send_metrics()
88 meta->header.data_len = cpu_to_le32(sizeof(*meta) - header_len); in ceph_mdsc_send_metrics()
100 dlease->header.data_len = cpu_to_le32(sizeof(*dlease) - header_len); in ceph_mdsc_send_metrics()
113 files->header.data_len = cpu_to_le32(sizeof(*files) - header_len); in ceph_mdsc_send_metrics()
123 icaps->header.data_len = cpu_to_le32(sizeof(*icaps) - header_len); in ceph_mdsc_send_metrics()
133 inodes->header.data_len = cpu_to_le32(sizeof(*inodes) - header_len); in ceph_mdsc_send_metrics()
143 rsize->header.data_len = cpu_to_le32(sizeof(*rsize) - header_len); in ceph_mdsc_send_metrics()
153 wsize->header.data_len = cpu_to_le32(sizeof(*wsize) - header_len); in ceph_mdsc_send_metrics()
Dmetric.h49 __le32 data_len; /* length of sizeof(hit + mis + total) */ member
/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.c316 static struct btrfs_delayed_item *btrfs_alloc_delayed_item(u32 data_len) in btrfs_alloc_delayed_item() argument
319 item = kmalloc(sizeof(*item) + data_len, GFP_NOFS); in btrfs_alloc_delayed_item()
321 item->data_len = data_len; in btrfs_alloc_delayed_item()
695 total_size = first_item->data_len + sizeof(struct btrfs_item); in btrfs_insert_delayed_item()
705 next_size = next->data_len + sizeof(struct btrfs_item); in btrfs_insert_delayed_item()
717 ins_sizes = &first_item->data_len; in btrfs_insert_delayed_item()
731 ins_sizes[i] = curr->data_len; in btrfs_insert_delayed_item()
746 (unsigned long)data_ptr, curr->data_len); in btrfs_insert_delayed_item()
Dsend.c1004 const char *data, int data_len,
1025 u32 data_len; in iterate_dir_item() local
1057 data_len = btrfs_dir_data_len(eb, di); in iterate_dir_item()
1066 if (name_len + data_len > in iterate_dir_item()
1075 if (name_len + data_len > PATH_MAX) { in iterate_dir_item()
1081 if (name_len + data_len > buf_len) { in iterate_dir_item()
1082 buf_len = name_len + data_len; in iterate_dir_item()
1104 name_len + data_len); in iterate_dir_item()
1106 len = sizeof(*di) + name_len + data_len; in iterate_dir_item()
1111 data_len, type, ctx); in iterate_dir_item()
[all …]
Dtree-checker.c510 u32 data_len; in check_dir_item() local
573 data_len = btrfs_dir_data_len(leaf, di); in check_dir_item()
580 if (unlikely(name_len + data_len > BTRFS_MAX_XATTR_SIZE(fs_info))) { in check_dir_item()
583 name_len + data_len, in check_dir_item()
588 if (unlikely(data_len && dir_type != BTRFS_FT_XATTR)) { in check_dir_item()
591 data_len); in check_dir_item()
595 total_size = sizeof(*di) + name_len + data_len; in check_dir_item()
Ddelayed-inode.h72 u32 data_len; member
Dxattr.c343 u16 data_len = btrfs_dir_data_len(leaf, di); in btrfs_listxattr() local
344 u32 this_len = sizeof(*di) + name_len + data_len; in btrfs_listxattr()
/fs/ecryptfs/
Dmessaging.c235 msg_size = (sizeof(*msg) + msg->data_len); in ecryptfs_process_response()
262 ecryptfs_send_message_locked(char *data, int data_len, u8 msg_type, in ecryptfs_send_message_locked() argument
284 rc = ecryptfs_send_miscdev(data, data_len, *msg_ctx, msg_type, 0, in ecryptfs_send_message_locked()
303 int ecryptfs_send_message(char *data, int data_len, in ecryptfs_send_message() argument
309 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()
328 if ((sizeof(*msg) + msg->data_len) != data_size) { in ecryptfs_miscdev_response()
331 (sizeof(*msg) + msg->data_len), data_size); in ecryptfs_miscdev_response()
Decryptfs_kernel.h372 u32 data_len; member
605 int ecryptfs_send_message(char *data, int data_len,
618 static inline int ecryptfs_send_message(char *data, int data_len, in ecryptfs_send_message() argument
/fs/lockd/
Dsvcxdr.h48 svcxdr_decode_string(struct xdr_stream *xdr, char **data, unsigned int *data_len) in svcxdr_decode_string() argument
60 *data_len = len; in svcxdr_decode_string()
/fs/ocfs2/cluster/
Dtcp.c75 be16_to_cpu(__hdr->magic), be16_to_cpu(__hdr->data_len), \
958 static void o2net_init_msg(struct o2net_msg *msg, u16 data_len, u16 msg_type, u32 key) in o2net_init_msg() argument
962 msg->data_len = cpu_to_be16(data_len); in o2net_init_msg()
1157 hdr->data_len = 0; in o2net_send_status_magic()
1214 if (be16_to_cpu(hdr->data_len) > nmh->nh_max_len) in o2net_process_message()
1224 be16_to_cpu(hdr->data_len), in o2net_process_message()
1370 if (be16_to_cpu(hdr->data_len) > in o2net_advance_rx()
1390 if (sc->sc_page_off - sizeof(struct o2net_msg) < be16_to_cpu(hdr->data_len)) { in o2net_advance_rx()
1393 datalen = (sizeof(struct o2net_msg) + be16_to_cpu(hdr->data_len)) - in o2net_advance_rx()
1402 if (sc->sc_page_off - sizeof(struct o2net_msg) == be16_to_cpu(hdr->data_len)) { in o2net_advance_rx()
Dtcp.h26 __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.c693 unsigned int data_len = er->er_data_len; in ea_write() local
714 copy = data_len > sdp->sd_jbsize ? sdp->sd_jbsize : in ea_write()
715 data_len; in ea_write()
723 data_len -= copy; in ea_write()
728 gfs2_assert_withdraw(sdp, !data_len); in ea_write()

12