Home
last modified time | relevance | path

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

12

/fs/ubifs/
Dxattr.c107 .dirtied_ino_d = ALIGN(host_ui->data_len, 8) }; in create_xattr()
147 ui->data_len = size; in create_xattr()
198 .dirtied_ino_d = ALIGN(size, 8) + ALIGN(host_ui->data_len, 8) }; in change_xattr()
200 ubifs_assert(ui->data_len == inode->i_size); in change_xattr()
213 ui->data_len = size; in change_xattr()
217 host_ui->xattr_size -= CALC_XATTR_BYTES(ui->data_len); in change_xattr()
236 host_ui->xattr_size += CALC_XATTR_BYTES(ui->data_len); in change_xattr()
397 ubifs_assert(inode->i_size == ui->data_len); in ubifs_getxattr()
398 ubifs_assert(ubifs_inode(host)->xattr_size > ui->data_len); in ubifs_getxattr()
402 if (ui->data_len > size) { in ubifs_getxattr()
[all …]
Djournal.c454 int data_len = 0, last_reference = !inode->i_nlink; in pack_inode() local
473 ino->data_len = cpu_to_le32(ui->data_len); in pack_inode()
484 memcpy(ino->data, ui->data, ui->data_len); in pack_inode()
485 data_len = ui->data_len; in pack_inode()
488 ubifs_prep_grp_node(c, ino, UBIFS_INO_NODE_SZ + data_len, last); in pack_inode()
549 inode->i_ino, nm->len, nm->name, ui->data_len, dir->i_ino); in ubifs_jnl_update()
550 ubifs_assert(dir_ui->data_len == 0); in ubifs_jnl_update()
563 ilen += ui->data_len; in ubifs_jnl_update()
772 len += ui->data_len; in ubifs_jnl_write_inode()
918 ubifs_assert(ubifs_inode(old_dir)->data_len == 0); in ubifs_jnl_rename()
[all …]
Dsuper.c85 if (ui->data_len < 0 || ui->data_len > UBIFS_MAX_INO_DATA) in validate_inode()
144 ui->data_len = le32_to_cpu(ino->data_len); in ubifs_iget()
168 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget()
173 memcpy(ui->data, ino->data, ui->data_len); in ubifs_iget()
174 ((char *)ui->data)[ui->data_len] = '\0'; in ubifs_iget()
175 } else if (ui->data_len != 0) { in ubifs_iget()
183 if (ui->data_len != 0) { in ubifs_iget()
190 if (ui->data_len <= 0 || ui->data_len > UBIFS_MAX_INO_DATA) { in ubifs_iget()
194 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget()
199 memcpy(ui->data, ino->data, ui->data_len); in ubifs_iget()
[all …]
Dioctl.c109 .dirtied_ino_d = ui->data_len }; in setflags()
Ddir.c519 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in ubifs_link()
824 ui->data_len = devlen; in ubifs_mknod()
899 ui->data_len = len; in ubifs_symlink()
982 .dirtied_ino_d = ALIGN(old_inode_ui->data_len, 8) }; in ubifs_rename()
Dubifs.h132 #define CALC_XATTR_BYTES(data_len) ALIGN(UBIFS_INO_NODE_SZ + (data_len) + 1, 8) argument
405 int data_len; member
Dubifs-media.h475 __le32 data_len; member
Dbudget.c642 req.dd_growth = c->inode_budget + ALIGN(ui->data_len, 8); in ubifs_release_dirty_inode_budget()
Dfile.c1200 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in do_setattr()
1362 .dirtied_ino_d = ALIGN(ui->data_len, 8) }; in update_mctime()
/fs/
Dbinfmt_flat.c419 unsigned long text_len, data_len, bss_len, stack_len, flags; in load_flat_file() local
433 data_len = ntohl(hdr->data_end) - ntohl(hdr->data_start); in load_flat_file()
498 if (data_len + bss_len > rlim) { in load_flat_file()
545 len = data_len + extra + MAX_SHARED_LIBS * sizeof(unsigned long); in load_flat_file()
564 (int)(data_len + bss_len + stack_len), (int)datapos); in load_flat_file()
570 data_len + (relocs * sizeof(unsigned long)), 0); in load_flat_file()
575 data_len + (relocs * sizeof(unsigned long)), &fpos); in load_flat_file()
580 do_munmap(current->mm, realdatastart, data_len + extra); in load_flat_file()
590 len = text_len + data_len + extra + MAX_SHARED_LIBS * sizeof(unsigned long); in load_flat_file()
619 (text_len + data_len + (relocs * sizeof(unsigned long)) in load_flat_file()
[all …]
/fs/ecryptfs/
Dmessaging.c137 ecryptfs_send_message_locked(char *data, int data_len, u8 msg_type,
434 msg_size = (sizeof(*msg) + msg->data_len); in ecryptfs_process_response()
464 ecryptfs_send_message_locked(char *data, int data_len, u8 msg_type, in ecryptfs_send_message_locked() argument
489 rc = ecryptfs_send_miscdev(data, data_len, *msg_ctx, msg_type, 0, in ecryptfs_send_message_locked()
508 int ecryptfs_send_message(char *data, int data_len, in ecryptfs_send_message() argument
514 rc = ecryptfs_send_message_locked(data, data_len, ECRYPTFS_MSG_REQUEST, in ecryptfs_send_message()
Dkeystore.c142 size_t data_len; in write_tag_64_packet() local
155 data_len = (5 + ECRYPTFS_SIG_SIZE_HEX in write_tag_64_packet()
157 *packet = kmalloc(data_len, GFP_KERNEL); in write_tag_64_packet()
198 size_t data_len; in parse_tag_65_packet() local
212 message_len = msg->data_len; in parse_tag_65_packet()
229 rc = ecryptfs_parse_packet_length(&data[i], &m_size, &data_len); in parse_tag_65_packet()
235 i += data_len; in parse_tag_65_packet()
285 size_t data_len; in write_tag_66_packet() local
299 data_len = (5 + ECRYPTFS_SIG_SIZE_HEX + crypt_stat->key_size); in write_tag_66_packet()
300 *packet = kmalloc(data_len, GFP_KERNEL); in write_tag_66_packet()
[all …]
Dmiscdev.c209 msg_ctx->msg->data_len = data_size; in ecryptfs_send_miscdev()
377 if ((sizeof(*msg) + msg->data_len) != data_size) { in ecryptfs_miscdev_response()
380 (sizeof(*msg) + msg->data_len), data_size); in ecryptfs_miscdev_response()
Decryptfs_kernel.h137 u32 data_len; member
415 u32 data_len; member
685 int ecryptfs_send_message(char *data, int data_len,
/fs/btrfs/
Ddir-item.c72 u16 name_len, const void *data, u16 data_len, in btrfs_insert_xattr_item() argument
90 if (name_len + data_len + sizeof(struct btrfs_dir_item) > in btrfs_insert_xattr_item()
94 data_size = sizeof(*dir_item) + name_len + data_len; in btrfs_insert_xattr_item()
112 btrfs_set_dir_data_len(leaf, dir_item, data_len); in btrfs_insert_xattr_item()
117 write_extent_buffer(leaf, data, data_ptr, data_len); in btrfs_insert_xattr_item()
Dctree.c2299 int data_len; in leaf_space_used() local
2305 data_len = btrfs_item_end_nr(l, start); in leaf_space_used()
2306 data_len = data_len - btrfs_item_offset_nr(l, end); in leaf_space_used()
2307 data_len += sizeof(struct btrfs_item) * nr; in leaf_space_used()
2308 WARN_ON(data_len < 0); in leaf_space_used()
2309 return data_len; in leaf_space_used()
Dctree.h495 __le16 data_len; member
1379 BTRFS_SETGET_FUNCS(dir_data_len, struct btrfs_dir_item, data_len, 16);
1960 u16 name_len, const void *data, u16 data_len,
/fs/ocfs2/cluster/
Dtcp.c89 be16_to_cpu(__hdr->magic), be16_to_cpu(__hdr->data_len), \
940 static void o2net_init_msg(struct o2net_msg *msg, u16 data_len, u16 msg_type, u32 key) in o2net_init_msg() argument
944 msg->data_len = cpu_to_be16(data_len); in o2net_init_msg()
1122 hdr->data_len = 0; in o2net_send_status_magic()
1180 if (be16_to_cpu(hdr->data_len) > nmh->nh_max_len) in o2net_process_message()
1190 be16_to_cpu(hdr->data_len), in o2net_process_message()
1334 if (be16_to_cpu(hdr->data_len) > in o2net_advance_rx()
1354 if (sc->sc_page_off - sizeof(struct o2net_msg) < be16_to_cpu(hdr->data_len)) { in o2net_advance_rx()
1357 datalen = (sizeof(struct o2net_msg) + be16_to_cpu(hdr->data_len)) - in o2net_advance_rx()
1366 if (sc->sc_page_off - sizeof(struct o2net_msg) == be16_to_cpu(hdr->data_len)) { in o2net_advance_rx()
Dtcp.h43 __be16 data_len; member
/fs/ntfs/
Dindex.h79 u16 data_len; member
Dquota.c67 if (ictx->data_len < offsetof(QUOTA_CONTROL_ENTRY, sid)) { in ntfs_mark_quotas_out_of_date()
Dindex.c217 ictx->data_len = le16_to_cpu(ie->data.vi.data_length); in ntfs_index_lookup()
/fs/cifs/
Dmd5.c356 hmac_md5(unsigned char key[16], unsigned char *data, int data_len,
361 if (data_len != 0)
362 hmac_md5_update(data, data_len, &ctx);
/fs/gfs2/
Deattr.c635 unsigned int data_len = er->er_data_len; in ea_write() local
654 copy = data_len > sdp->sd_jbsize ? sdp->sd_jbsize : in ea_write()
655 data_len; in ea_write()
663 data_len -= copy; in ea_write()
668 gfs2_assert_withdraw(sdp, !data_len); in ea_write()
/fs/smbfs/
Dproc.c1327 __u16 returned_count, data_len; in smb_proc_read() local
1355 data_len = WVAL(rbuf, 1); in smb_proc_read()
1357 if (returned_count != data_len) { in smb_proc_read()
1360 returned_count, data_len); in smb_proc_read()
1362 result = data_len; in smb_proc_read()

12