Home
last modified time | relevance | path

Searched refs:data_size (Results 1 – 25 of 36) sorted by relevance

12

/fs/btrfs/
Ddir-item.c23 u32 data_size, in insert_with_overflow() argument
33 ret = btrfs_insert_empty_item(trans, root, path, cpu_key, data_size); in insert_with_overflow()
39 btrfs_extend_item(path, data_size); in insert_with_overflow()
46 BUG_ON(data_size > btrfs_item_size(leaf, item)); in insert_with_overflow()
47 ptr += btrfs_item_size(leaf, item) - data_size; in insert_with_overflow()
67 u32 data_size; in btrfs_insert_xattr_item() local
76 data_size = sizeof(*dir_item) + name_len + data_len; in btrfs_insert_xattr_item()
77 dir_item = insert_with_overflow(trans, root, path, &key, data_size, in btrfs_insert_xattr_item()
121 u32 data_size; in btrfs_insert_dir_item() local
133 data_size = sizeof(*dir_item) + name_len; in btrfs_insert_dir_item()
[all …]
Dctree.c23 int data_size, int extend);
2754 int data_size, int empty, in __push_leaf_right() argument
2780 push_space += data_size; in __push_leaf_right()
2799 push_space += data_size; in __push_leaf_right()
2903 int min_data_size, int data_size, in push_leaf_right() argument
2935 if (free_space < data_size) in push_leaf_right()
2945 if (free_space < data_size) in push_leaf_right()
2988 static noinline int __push_leaf_left(struct btrfs_path *path, int data_size, in __push_leaf_left() argument
3027 push_space += data_size; in __push_leaf_left()
3142 int data_size, int empty, u32 max_slot) in push_leaf_left() argument
[all …]
Dxattr.c172 const u32 data_size = sizeof(*di) + name_len + size; in btrfs_setxattr() local
190 btrfs_truncate_item(path, data_size, 1); in btrfs_setxattr()
196 btrfs_extend_item(path, data_size); in btrfs_setxattr()
201 ptr += btrfs_item_size(leaf, item) - data_size; in btrfs_setxattr()
Dfree-space-tree.c290 u32 data_size; in convert_free_space_to_bitmaps() local
293 data_size = free_space_bitmap_size(fs_info, extent_size); in convert_free_space_to_bitmaps()
300 data_size); in convert_free_space_to_bitmaps()
307 data_size); in convert_free_space_to_bitmaps()
312 bitmap_cursor += data_size; in convert_free_space_to_bitmaps()
374 u32 bitmap_pos, data_size; in convert_free_space_to_extents() local
384 data_size = free_space_bitmap_size(fs_info, in convert_free_space_to_extents()
389 data_size); in convert_free_space_to_extents()
/fs/ntfs3/
Dattrib.c263 rsize = le32_to_cpu(attr->res.data_size); in attr_make_nonresident()
332 attr->nres.data_size = cpu_to_le64(rsize); in attr_make_nonresident()
333 attr->nres.valid_size = attr->nres.data_size; in attr_make_nonresident()
372 u32 rsize = le32_to_cpu(attr->res.data_size); in attr_set_size_res()
394 attr->res.data_size = cpu_to_le32(new_size); in attr_set_size_res()
458 old_size = le64_to_cpu(attr_b->nres.data_size); in attr_set_size()
466 attr_b->nres.data_size = cpu_to_le64(new_size); in attr_set_size()
509 attr_b->nres.data_size = cpu_to_le64(new_size); in attr_set_size()
596 attr_b->nres.data_size = cpu_to_le64(new_size); in attr_set_size()
604 attr_b->nres.data_size = attr_b->nres.alloc_size; in attr_set_size()
[all …]
Dindex.c208 size_t data_size, valid_size, vbo, off = bit >> 3; in bmp_buf_get() local
226 data_size = le32_to_cpu(b->res.data_size); in bmp_buf_get()
228 if (off >= data_size) in bmp_buf_get()
233 bbuf->nbits = data_size * 8; in bmp_buf_get()
238 data_size = le64_to_cpu(b->nres.data_size); in bmp_buf_get()
239 if (WARN_ON(off >= data_size)) { in bmp_buf_get()
268 else if (bbuf->new_valid > data_size) in bmp_buf_get()
269 bbuf->new_valid = data_size; in bmp_buf_get()
373 u64 data_size = le64_to_cpu(bitmap->nres.data_size); in scan_nres_bitmap() local
374 sector_t eblock = bytes_to_block(sb, data_size); in scan_nres_bitmap()
[all …]
Dfrecord.c889 attr->res.data_size = cpu_to_le32(lsize); in ni_create_attr_list()
1451 attr->nres.data_size = attr->nres.alloc_size; in ni_insert_nonresident()
1467 int ni_insert_resident(struct ntfs_inode *ni, u32 data_size, in ni_insert_resident() argument
1474 u32 asize = SIZEOF_RESIDENT + name_size + ALIGN(data_size, 8); in ni_insert_resident()
1485 attr->res.data_size = cpu_to_le32(data_size); in ni_insert_resident()
1539 le32_to_cpu(attr->res.data_size) >= in ni_delete_all()
1707 if (attr->nres.data_size) { in ni_new_attr_flags()
1762 } else if (le64_to_cpu(attr->nres.data_size) >= in ni_parse_reparse()
1902 attr ? le32_to_cpu(attr->res.data_size) : 0, in ni_fiemap()
2442 u32 data_size = le32_to_cpu(attr->res.data_size); in ni_read_frame() local
[all …]
Dntfs.h325 __le32 data_size; // 0x10: The size of data. member
351 __le64 data_size; // 0x30: The size of attribute in bytes <= alloc_size. member
395 : ALIGN(le32_to_cpu(attr->res.data_size), 8); in attr_ondisk_size()
400 return attr->non_res ? le64_to_cpu(attr->nres.data_size) : in attr_size()
401 le32_to_cpu(attr->res.data_size); in attr_size()
457 rsize = le32_to_cpu(attr->res.data_size); in resident_data_ex()
561 __le64 data_size; // 0x28: Data attribute size <= Dataalloc_size. member
612 __le16 data_size; // 0x02: member
Dnamei.c23 u16 data_size; in fill_name_de() local
52 data_size = fname_full_size(fname); in fill_name_de()
54 e->size = cpu_to_le16(ALIGN(data_size, 8) + sizeof(struct NTFS_DE)); in fill_name_de()
55 e->key_size = cpu_to_le16(data_size); in fill_name_de()
Dinode.c137 rsize = attr->non_res ? 0 : le32_to_cpu(attr->res.data_size); in ntfs_read_mft()
145 if (le64_to_cpu(attr->nres.data_size) > t64 || in ntfs_read_mft()
255 inode->i_size = le64_to_cpu(attr->nres.data_size); in ntfs_read_mft()
297 inode->i_size = le64_to_cpu(attr->nres.data_size); in ntfs_read_mft()
1356 attr->res.data_size = cpu_to_le32(dsize); in ntfs_create_inode()
1377 fname->dup.alloc_size = fname->dup.data_size = 0; in ntfs_create_inode()
1389 attr->res.data_size = cpu_to_le32(dsize); in ntfs_create_inode()
1402 attr->res.data_size = cpu_to_le32(sd_size); in ntfs_create_inode()
1424 attr->res.data_size = cpu_to_le32(dsize); in ntfs_create_inode()
1531 attr->nres.data_size = cpu_to_le64(nsize); in ntfs_create_inode()
[all …]
Dfslog.c218 __le64 data_size; member
1006 u32 data_size; member
1339 log->data_size = log->page_size - log->data_off; in log_create()
1343 log->reserved = log->data_size - log->record_header_len; in log_create()
1368 log->total_avail = log->total_avail * log->data_size; in log_create()
1422 tail = log->data_size; in final_log_off()
2652 if (le32_to_cpu(attr->res.data_size) < sizeof(struct INDEX_ROOT) || in check_index_root()
2665 le32_to_cpu(attr->res.data_size) - in check_index_root()
2691 rsize = le32_to_cpu(attr->res.data_size); in check_attr()
2699 dsize = le64_to_cpu(attr->nres.data_size); in check_attr()
[all …]
Dattrlist.c54 lsize = le32_to_cpu(attr->res.data_size); in ntfs_load_attr_list()
68 lsize = le64_to_cpu(attr->nres.data_size); in ntfs_load_attr_list()
465 attr->nres.valid_size = attr->nres.data_size; in al_update()
Drecord.c265 t32 = le32_to_cpu(attr->res.data_size); in mi_enum_attr()
531 u32 rsize = le32_to_cpu(attr->res.data_size); in mi_resize_attr()
568 attr->res.data_size = cpu_to_le32(rsize); in mi_resize_attr()
Dfsntfs.c491 attr->nres.valid_size = attr->nres.data_size; in ntfs_extend_mft()
1880 le32_to_cpu(attr->res.data_size)) { in ntfs_security_init()
1901 le32_to_cpu(attr->res.data_size)) { in ntfs_security_init()
1935 if (le16_to_cpu(ne->view.data_size) < SIZEOF_SECURITY_HDR) in ntfs_security_init()
2205 sii_e.de.view.data_size = cpu_to_le16(SIZEOF_SECURITY_HDR); in ntfs_insert_security()
2221 sdh_e.de.view.data_size = cpu_to_le16(SIZEOF_SECURITY_HDR); in ntfs_insert_security()
/fs/ecryptfs/
Dmiscdev.c146 int ecryptfs_send_miscdev(char *data, size_t data_size, in ecryptfs_send_miscdev() argument
152 msg = kmalloc((sizeof(*msg) + data_size), GFP_KERNEL); in ecryptfs_send_miscdev()
159 msg_ctx->msg->data_len = data_size; in ecryptfs_send_miscdev()
161 memcpy(msg_ctx->msg->data, data, data_size); in ecryptfs_send_miscdev()
162 msg_ctx->msg_size = (sizeof(*msg_ctx->msg) + data_size); in ecryptfs_send_miscdev()
323 size_t data_size, u32 seq) in ecryptfs_miscdev_response() argument
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()
/fs/ntfs/
Dattrib.h71 return sle64_to_cpu(a->data.non_resident.data_size); in ntfs_attr_size()
92 extern int ntfs_attr_make_non_resident(ntfs_inode *ni, const u32 data_size);
Dattrib.c1545 int ntfs_attr_make_non_resident(ntfs_inode *ni, const u32 data_size) in ntfs_attr_make_non_resident() argument
1583 new_size = (data_size + vol->cluster_size - 1) & in ntfs_attr_make_non_resident()
1667 BUG_ON(attr_size != data_size); in ntfs_attr_make_non_resident()
1702 a->data.non_resident.data_size = in ntfs_attr_make_non_resident()
2371 sle64_to_cpu(a->data.non_resident.data_size)); in ntfs_attr_extend_allocation()
2372 a->data.non_resident.data_size = cpu_to_sle64(new_data_size); in ntfs_attr_extend_allocation()
Dinode.c946 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_inode()
1110 a->data.non_resident.data_size); in ntfs_read_locked_inode()
1385 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_attr_inode()
1644 vi->i_size = sle64_to_cpu(a->data.non_resident.data_size); in ntfs_read_locked_index_inode()
2065 a->data.non_resident.data_size); in ntfs_read_inode_mount()
2646 a->data.non_resident.data_size = cpu_to_sle64(new_size); in ntfs_truncate()
2790 a->data.non_resident.data_size = cpu_to_sle64(new_size); in ntfs_truncate()
/fs/zonefs/
Dsuper.c343 loff_t isize, data_size; in zonefs_io_error_cb() local
351 data_size = zonefs_check_zone_condition(inode, zone, true, false); in zonefs_io_error_cb()
355 !err->write && isize == data_size) in zonefs_io_error_cb()
377 if (zi->i_ztype == ZONEFS_ZTYPE_SEQ && isize != data_size) in zonefs_io_error_cb()
379 inode->i_ino, isize, data_size); in zonefs_io_error_cb()
393 data_size = zonefs_check_zone_condition(inode, zone, in zonefs_io_error_cb()
402 data_size = zonefs_check_zone_condition(inode, zone, in zonefs_io_error_cb()
406 data_size > isize) { in zonefs_io_error_cb()
408 data_size = isize; in zonefs_io_error_cb()
435 zonefs_update_stats(inode, data_size); in zonefs_io_error_cb()
[all …]
/fs/nfs/
Dnfs4idmap.c307 size_t data_size, struct idmap *idmap) in nfs_idmap_get_key() argument
337 if (ret > 0 && ret <= data_size) in nfs_idmap_get_key()
370 ssize_t data_size; in nfs_idmap_lookup_id() local
373 data_size = nfs_idmap_get_key(name, namelen, type, id_str, NFS_UINT_MAXLEN, idmap); in nfs_idmap_lookup_id()
374 if (data_size <= 0) { in nfs_idmap_lookup_id()
/fs/
Dfs_context.c35 size_t data_size; member
510 src_ctx->data_size, GFP_KERNEL); in legacy_fs_context_dup()
528 unsigned int size = ctx->data_size; in legacy_parse_param()
575 ctx->data_size = size; in legacy_parse_param()
/fs/ext4/
Dmove_extent.c257 unsigned int tmp_data_size, data_size, replaced_size; in move_extent_per_page() local
296 data_size = tmp_data_size + in move_extent_per_page()
299 data_size = block_len_in_page << orig_inode->i_blkbits; in move_extent_per_page()
301 replaced_size = data_size; in move_extent_per_page()
/fs/proc/
Dvmcore.c1460 size_t data_size; in vmcore_add_device_dump() local
1479 data_size = roundup(sizeof(struct vmcoredd_header) + data->size, in vmcore_add_device_dump()
1483 buf = vmcore_alloc_buf(data_size); in vmcore_add_device_dump()
1489 vmcoredd_write_header(buf, data, data_size - in vmcore_add_device_dump()
1499 dump->size = data_size; in vmcore_add_device_dump()
1506 vmcoredd_update_size(data_size); in vmcore_add_device_dump()
/fs/verity/
Dopen.c247 if (le64_to_cpu(desc->data_size) != inode->i_size) { in validate_fsverity_descriptor()
250 le64_to_cpu(desc->data_size), inode->i_size); in validate_fsverity_descriptor()
/fs/befs/
Dbefs_fs_types.h171 fs16 data_size; member

12