Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 25 of 52) sorted by relevance

123

/linux-6.1.9/fs/ntfs/
Drunlist.c61 int old_size, int new_size) in ntfs_rl_realloc() argument
65 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc()
67 if (old_size == new_size) in ntfs_rl_realloc()
75 if (unlikely(old_size > new_size)) in ntfs_rl_realloc()
76 old_size = new_size; in ntfs_rl_realloc()
77 memcpy(new_rl, rl, old_size); in ntfs_rl_realloc()
107 int old_size, int new_size) in ntfs_rl_realloc_nofail() argument
111 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc_nofail()
113 if (old_size == new_size) in ntfs_rl_realloc_nofail()
120 if (unlikely(old_size > new_size)) in ntfs_rl_realloc_nofail()
[all …]
Dinode.c2357 s64 new_size, old_size, nr_freed, new_alloc_size, old_alloc_size; in ntfs_truncate() local
2421 old_size = ntfs_attr_size(a); in ntfs_truncate()
2437 if (new_size - old_size >= 0) { in ntfs_truncate()
2439 if (new_size == old_size) in ntfs_truncate()
2465 new_size > old_size ? "exceed " in ntfs_truncate()
2478 i_size_write(vi, old_size); in ntfs_truncate()
2553 err = ntfs_attr_make_non_resident(ni, old_size); in ntfs_truncate()
2825 old_size = -1; in ntfs_truncate()
2831 else if (old_size >= 0) in ntfs_truncate()
2832 i_size_write(vi, old_size); in ntfs_truncate()
[all …]
/linux-6.1.9/tools/perf/util/
Dgenelf_debug.c402 size_t old_size; in add_debug_line() local
404 old_size = buffer_ext_size(be); in add_debug_line()
417 dbg_header = buffer_ext_addr(be) + old_size; in add_debug_line()
418 dbg_header->prolog_length = (buffer_ext_size(be) - old_size) - in add_debug_line()
425 dbg_header = buffer_ext_addr(be) + old_size; in add_debug_line()
426 dbg_header->total_length = (buffer_ext_size(be) - old_size) - in add_debug_line()
448 size_t old_size = buffer_ext_size(be); in add_compilation_unit() local
456 comp_unit_header = buffer_ext_addr(be) + old_size; in add_compilation_unit()
457 comp_unit_header->total_length = (buffer_ext_size(be) - old_size) - in add_compilation_unit()
/linux-6.1.9/fs/ntfs3/
Dattrlist.c284 size_t asize, new_asize, old_size; in al_add_le() local
292 old_size = al->size; in al_add_le()
293 new_size = old_size + sz; in al_add_le()
294 asize = al_aligned(old_size); in al_add_le()
308 memcpy(Add2Ptr(ptr, off + sz), le, old_size - off); in al_add_le()
313 memmove(Add2Ptr(le, sz), le, old_size - off); in al_add_le()
332 memmove(le, Add2Ptr(le, sz), old_size - off); in al_add_le()
333 al->size = old_size; in al_add_le()
Dattrib.c420 u64 old_valid, old_size, old_alloc, new_alloc, new_alloc_tmp; in attr_set_size() local
460 old_size = le64_to_cpu(attr_b->nres.data_size); in attr_set_size()
469 if (keep_prealloc && new_size < old_size) { in attr_set_size()
511 if (new_size > old_size) { in attr_set_size()
691 old_valid = old_size = old_alloc = (u64)vcn << cluster_bits; in attr_set_size()
693 attr_b->nres.alloc_size = cpu_to_le64(old_size); in attr_set_size()
698 if (new_size != old_size || in attr_set_size()
774 old_size = new_alloc_tmp; in attr_set_size()
845 attr_b->nres.data_size = cpu_to_le64(old_size); in attr_set_size()
/linux-6.1.9/rust/alloc/
Dalloc.rs38 fn __rust_realloc(ptr: *mut u8, old_size: usize, align: usize, new_size: usize) -> *mut u8; in __rust_realloc()
199 old_size if old_layout.align() == new_layout.align() => unsafe { in grow_impl()
208 raw_ptr.add(old_size).write_bytes(0, new_size - old_size); in grow_impl()
218 old_size => unsafe { in grow_impl()
220 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), old_size); in grow_impl()
/linux-6.1.9/fs/ubifs/
Dreplay.c57 loff_t old_size; member
191 max_blk = r->old_size / UBIFS_BLOCK_SIZE; in trun_remove_range()
192 if ((r->old_size & (UBIFS_BLOCK_SIZE - 1)) == 0) in trun_remove_range()
386 loff_t old_size, loff_t new_size) in insert_node() argument
408 r->old_size = old_size; in insert_node()
780 loff_t old_size = le64_to_cpu(trun->old_size); in replay_bud() local
785 if (old_size < 0 || old_size > c->max_inode_sz || in replay_bud()
787 old_size <= new_size) { in replay_bud()
799 old_size, new_size); in replay_bud()
Dxattr.c197 int old_size; in change_xattr() local
214 old_size = ui->data_len; in change_xattr()
219 host_ui->xattr_size -= CALC_XATTR_BYTES(old_size); in change_xattr()
238 host_ui->xattr_size += CALC_XATTR_BYTES(old_size); in change_xattr()
/linux-6.1.9/drivers/md/persistent-data/
Ddm-array.c660 uint32_t old_size, uint32_t new_size, in array_resize() argument
666 if (old_size == new_size) { in array_resize()
677 resize.old_nr_full_blocks = old_size / resize.max_entries; in array_resize()
678 resize.old_nr_entries_in_last_block = old_size % resize.max_entries; in array_resize()
683 r = ((new_size > old_size) ? grow : shrink)(&resize); in array_resize()
692 uint32_t old_size, uint32_t new_size, in dm_array_resize() argument
696 int r = array_resize(info, root, old_size, new_size, value, new_root); in dm_array_resize()
Ddm-array.h110 uint32_t old_size, uint32_t new_size,
/linux-6.1.9/fs/cachefiles/
Dinterface.c281 loff_t old_size = cookie->object_size; in cachefiles_resize_cookie() local
283 _enter("%llu->%llu", old_size, new_size); in cachefiles_resize_cookie()
285 if (new_size < old_size) { in cachefiles_resize_cookie()
/linux-6.1.9/drivers/gpu/drm/lima/
Dlima_gem.c26 size_t old_size = bo->heap_size; in lima_heap_alloc() local
55 for (i = old_size >> PAGE_SHIFT; i < new_size >> PAGE_SHIFT; i++) { in lima_heap_alloc()
94 ret = lima_vm_map_bo(vm, bo, old_size >> PAGE_SHIFT); in lima_heap_alloc()
/linux-6.1.9/include/trace/events/
Dfscache.h484 __field(loff_t, old_size )
490 __entry->old_size = cookie->object_size;
496 __entry->old_size,
/linux-6.1.9/drivers/pci/
Dsetup-bus.c794 resource_size_t old_size, in calculate_iosize() argument
799 if (old_size == 1) in calculate_iosize()
800 old_size = 0; in calculate_iosize()
809 if (size < old_size) in calculate_iosize()
810 size = old_size; in calculate_iosize()
820 resource_size_t old_size, in calculate_memsize() argument
825 if (old_size == 1) in calculate_memsize()
826 old_size = 0; in calculate_memsize()
827 if (size < old_size) in calculate_memsize()
828 size = old_size; in calculate_memsize()
/linux-6.1.9/fs/gfs2/
Dlock_dlm.c1073 uint32_t old_size, new_size; in set_recover_size() local
1088 old_size = ls->ls_recover_size; in set_recover_size()
1089 new_size = old_size; in set_recover_size()
1092 if (new_size == old_size) in set_recover_size()
1104 memcpy(submit, ls->ls_recover_submit, old_size * sizeof(uint32_t)); in set_recover_size()
1105 memcpy(result, ls->ls_recover_result, old_size * sizeof(uint32_t)); in set_recover_size()
/linux-6.1.9/arch/sparc/mm/
Dtsb.c399 unsigned long new_size, old_size, flags; in tsb_grow() local
478 old_size = (mm->context.tsb_block[tsb_index].tsb_nentries * in tsb_grow()
509 copy_tsb(old_tsb_base, old_size, new_tsb_base, new_size, in tsb_grow()
/linux-6.1.9/kernel/
Dkexec_core.c1025 unsigned long old_size; in crash_shrink_memory() local
1037 old_size = (end == 0) ? 0 : end - start + 1; in crash_shrink_memory()
1038 if (new_size >= old_size) { in crash_shrink_memory()
1039 ret = (new_size == old_size) ? 0 : -EINVAL; in crash_shrink_memory()
/linux-6.1.9/include/linux/ceph/
Dceph_fs.h413 __le64 size, old_size; /* old_size needed by truncate */ member
438 __le64 old_size; member
472 __le64 size, old_size; /* old_size needed by truncate */ member
/linux-6.1.9/arch/x86/pci/
Dmmconfig-shared.c453 u64 old_size = size; in is_mmconf_reserved() local
463 if (size < (16UL<<20) && size != old_size) in is_mmconf_reserved()
473 if (old_size != size) { in is_mmconf_reserved()
/linux-6.1.9/drivers/md/bcache/
Dextents.c331 unsigned int old_size, sectors_found = 0; in bch_extent_insert_fixup() local
353 old_size = KEY_SIZE(k); in bch_extent_insert_fixup()
458 bch_subtract_dirty(k, c, old_offset, old_size - KEY_SIZE(k)); in bch_extent_insert_fixup()
/linux-6.1.9/fs/ext4/
Dinline.c1081 static void ext4_update_final_de(void *de_buf, int old_size, int new_size) in ext4_update_final_de() argument
1088 if (old_size) { in ext4_update_final_de()
1089 limit = de_buf + old_size; in ext4_update_final_de()
1092 de_len = ext4_rec_len_from_disk(de->rec_len, old_size); in ext4_update_final_de()
1098 old_size, new_size); in ext4_update_final_de()
1110 int old_size = EXT4_I(dir)->i_inline_size - EXT4_MIN_INLINE_DATA_SIZE; in ext4_update_inline_dir() local
1113 if (new_size - old_size <= ext4_dir_rec_len(1, NULL)) in ext4_update_inline_dir()
1121 ext4_update_final_de(ext4_get_inline_xattr_pos(dir, iloc), old_size, in ext4_update_inline_dir()
/linux-6.1.9/include/linux/
Dlivepatch.h73 unsigned long old_size, new_size; member
/linux-6.1.9/fs/btrfs/
Dinode-item.c328 u32 old_size; in btrfs_insert_inode_ref() local
334 old_size = btrfs_item_size(path->nodes[0], path->slots[0]); in btrfs_insert_inode_ref()
338 ref = (struct btrfs_inode_ref *)((unsigned long)ref + old_size); in btrfs_insert_inode_ref()
/linux-6.1.9/mm/
Dmemblock.c414 phys_addr_t old_size, new_size, addr, new_end; in memblock_double_array() local
425 old_size = type->max * sizeof(struct memblock_region); in memblock_double_array()
426 new_size = old_size << 1; in memblock_double_array()
431 old_alloc_size = PAGE_ALIGN(old_size); in memblock_double_array()
474 memcpy(new_array, type->regions, old_size); in memblock_double_array()
475 memset(new_array + type->max, 0, old_size); in memblock_double_array()
/linux-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cotable.c391 size_t old_size = res->backup_size; in vmw_cotable_resize() local
470 res->backup_size = old_size; in vmw_cotable_resize()

123