Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 18 of 18) sorted by relevance

/fs/ocfs2/
Dmove_extents.c731 static void ocfs2_calc_extent_defrag_len(u32 *alloc_size, u32 *len_defraged, in ocfs2_calc_extent_defrag_len() argument
734 if ((*alloc_size + *len_defraged) < threshold) { in ocfs2_calc_extent_defrag_len()
738 *len_defraged += *alloc_size; in ocfs2_calc_extent_defrag_len()
753 *alloc_size = threshold - *len_defraged; in ocfs2_calc_extent_defrag_len()
762 u32 cpos, phys_cpos, move_start, len_to_move, alloc_size; in __ocfs2_move_extents_range() local
819 ret = ocfs2_get_clusters(inode, cpos, &phys_cpos, &alloc_size, in __ocfs2_move_extents_range()
826 if (alloc_size > len_to_move) in __ocfs2_move_extents_range()
827 alloc_size = len_to_move; in __ocfs2_move_extents_range()
843 ocfs2_calc_extent_defrag_len(&alloc_size, &len_defraged, in __ocfs2_move_extents_range()
855 cpos, phys_cpos, alloc_size, len_defraged); in __ocfs2_move_extents_range()
[all …]
Dfile.c1438 u32 cpos, phys_cpos, clusters, alloc_size; in ocfs2_allocate_unwritten_extents() local
1472 &alloc_size, NULL); in ocfs2_allocate_unwritten_extents()
1482 if (alloc_size > clusters) in ocfs2_allocate_unwritten_extents()
1483 alloc_size = clusters; in ocfs2_allocate_unwritten_extents()
1493 ret = ocfs2_extend_allocation(inode, cpos, alloc_size, 1); in ocfs2_allocate_unwritten_extents()
1501 cpos += alloc_size; in ocfs2_allocate_unwritten_extents()
1502 clusters -= alloc_size; in ocfs2_allocate_unwritten_extents()
Dxattr.c816 u32 trunc_len, cpos, phys_cpos, alloc_size; in ocfs2_xattr_shrink_size() local
826 &alloc_size, in ocfs2_xattr_shrink_size()
833 if (alloc_size > trunc_len) in ocfs2_xattr_shrink_size()
834 alloc_size = trunc_len; in ocfs2_xattr_shrink_size()
837 phys_cpos, alloc_size, in ocfs2_xattr_shrink_size()
846 block, alloc_size); in ocfs2_xattr_shrink_size()
847 cpos += alloc_size; in ocfs2_xattr_shrink_size()
848 trunc_len -= alloc_size; in ocfs2_xattr_shrink_size()
/fs/ntfs3/
Dattrib.c461 old_alloc = le64_to_cpu(attr_b->nres.alloc_size); in attr_set_size()
607 attr_b->nres.alloc_size = cpu_to_le64(new_alloc_tmp); in attr_set_size()
620 attr_b->nres.data_size = attr_b->nres.alloc_size; in attr_set_size()
630 attr_b->nres.data_size = attr_b->nres.alloc_size; in attr_set_size()
693 attr_b->nres.alloc_size = cpu_to_le64(old_size); in attr_set_size()
739 attr_b->nres.alloc_size = cpu_to_le64(new_alloc_tmp); in attr_set_size()
750 attr_b->nres.alloc_size; in attr_set_size()
754 attr_b->nres.alloc_size; in attr_set_size()
828 new_alloc = le64_to_cpu(attr_b->nres.alloc_size); in attr_set_size()
847 attr_b->nres.alloc_size = cpu_to_le64(old_alloc); in attr_set_size()
[all …]
Dfrecord.c544 alloc = le64_to_cpu(attr->nres.alloc_size) >> in ni_repack()
1497 attr->nres.alloc_size = in ni_insert_nonresident()
1499 attr->nres.data_size = attr->nres.alloc_size; in ni_insert_nonresident()
1500 attr->nres.valid_size = attr->nres.alloc_size; in ni_insert_nonresident()
1505 attr->nres.total_size = attr->nres.alloc_size; in ni_insert_nonresident()
1919 u64 end, alloc_size; in ni_fiemap() local
1958 alloc_size = le64_to_cpu(attr->nres.alloc_size); in ni_fiemap()
1959 if (end > alloc_size) in ni_fiemap()
1960 end = alloc_size; in ni_fiemap()
3137 dup->alloc_size = 0; in ni_update_parent()
[all …]
Dntfs.h349 __le64 alloc_size; // 0x28: The allocated size of attribute in bytes. member
394 le64_to_cpu(attr->nres.alloc_size)) in attr_ondisk_size()
558 __le64 alloc_size; // 0x20: Data attribute allocated size, multiple of cluster size. member
Dinode.c144 t64 = le64_to_cpu(attr->nres.alloc_size); in ntfs_read_mft()
256 if (!attr->nres.alloc_size) in ntfs_read_mft()
299 inode_set_bytes(inode, le64_to_cpu(attr->nres.alloc_size)); in ntfs_read_mft()
310 if (le64_to_cpu(attr->nres.alloc_size) >= 0x20000000) in ntfs_read_mft()
1371 fname->dup.alloc_size = fname->dup.data_size = 0; in ntfs_create_inode()
1527 attr->nres.alloc_size = in ntfs_create_inode()
Dfslog.c216 __le64 alloc_size; member
2708 dsize > le64_to_cpu(attr->nres.alloc_size)) { in check_attr()
2991 attr->nres.alloc_size = cpu_to_le64(ntfs_up_cluster(sbi, size)); in attr_create_nonres_log()
3357 attr->nres.alloc_size = new_sz->alloc_size; in do_action()
4837 t64 = le64_to_cpu(attr->nres.alloc_size); in log_replay()
4840 attr->nres.alloc_size = cpu_to_le64(size); in log_replay()
5070 attr->nres.alloc_size = in log_replay()
Dindex.c1428 u32 alloc_size = ntfs_up_cluster(sbi, data_size); in indx_create_allocate() local
1429 CLST len = alloc_size >> sbi->cluster_bits; in indx_create_allocate()
1455 inode_set_bytes(&ni->vfs_inode, alloc_size); in indx_create_allocate()
Dfsntfs.c492 new_mft_total = le64_to_cpu(attr->nres.alloc_size) >> sbi->record_bits; in ntfs_extend_mft()
/fs/smb/server/
Dxattr.h43 __u64 alloc_size; member
Dndr.c213 ret = ndr_write_int64(n, da->alloc_size); in ndr_encode_dos_attr()
Dsmb2pdu.c3267 loff_t alloc_size; in smb2_open() local
3276 alloc_size = le64_to_cpu(az_req->AllocationSize); in smb2_open()
3279 alloc_size); in smb2_open()
3282 alloc_size); in smb2_open()
/fs/
Dselect.c632 size_t size, alloc_size; in core_sys_select() local
662 alloc_size = 6 * size; in core_sys_select()
663 bits = kvmalloc(alloc_size, GFP_KERNEL); in core_sys_select()
/fs/gfs2/
Dbmap.c940 u64 alloc_size; in __gfs2_iomap_get() local
946 alloc_size = len << inode->i_blkbits; in __gfs2_iomap_get()
947 if (alloc_size < iomap->length) in __gfs2_iomap_get()
948 iomap->length = alloc_size; in __gfs2_iomap_get()
/fs/btrfs/
Dsuper.c2310 u64 alloc_size; in btrfs_calc_avail_data_space() local
2313 alloc_size = devices_info[i].max_avail; in btrfs_calc_avail_data_space()
2315 devices_info[j].max_avail -= alloc_size; in btrfs_calc_avail_data_space()
Dioctl.c3901 int alloc_size; in btrfs_ioctl_space_info() local
3946 alloc_size = sizeof(*dest) * slot_count; in btrfs_ioctl_space_info()
3951 if (alloc_size > PAGE_SIZE) in btrfs_ioctl_space_info()
3955 dest = kmalloc(alloc_size, GFP_KERNEL); in btrfs_ioctl_space_info()
4011 if (copy_to_user(user_dest, dest_orig, alloc_size)) in btrfs_ioctl_space_info()
Dsend.c7815 size_t alloc_size; in btrfs_ioctl_send() local
7949 alloc_size = array_size(sizeof(*arg->clone_sources), in btrfs_ioctl_send()
7953 clone_sources_tmp = kvmalloc(alloc_size, GFP_KERNEL); in btrfs_ioctl_send()
7960 alloc_size); in btrfs_ioctl_send()