Home
last modified time | relevance | path

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

123

/linux-6.6.21/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()
2826 old_size = -1; in ntfs_truncate()
2832 else if (old_size >= 0) in ntfs_truncate()
2833 i_size_write(vi, old_size); in ntfs_truncate()
[all …]
/linux-6.6.21/tools/perf/util/
Dgenelf_debug.c413 size_t old_size; in add_debug_line() local
415 old_size = buffer_ext_size(be); in add_debug_line()
428 dbg_header = buffer_ext_addr(be) + old_size; in add_debug_line()
429 dbg_header->prolog_length = (buffer_ext_size(be) - old_size) - in add_debug_line()
436 dbg_header = buffer_ext_addr(be) + old_size; in add_debug_line()
437 dbg_header->total_length = (buffer_ext_size(be) - old_size) - in add_debug_line()
459 size_t old_size = buffer_ext_size(be); in add_compilation_unit() local
467 comp_unit_header = buffer_ext_addr(be) + old_size; in add_compilation_unit()
468 comp_unit_header->total_length = (buffer_ext_size(be) - old_size) - in add_compilation_unit()
/linux-6.6.21/fs/ntfs3/
Dattrlist.c295 size_t asize, new_asize, old_size; in al_add_le() local
303 old_size = al->size; in al_add_le()
304 new_size = old_size + sz; in al_add_le()
305 asize = al_aligned(old_size); in al_add_le()
319 memcpy(Add2Ptr(ptr, off + sz), le, old_size - off); in al_add_le()
324 memmove(Add2Ptr(le, sz), le, old_size - off); in al_add_le()
343 memmove(le, Add2Ptr(le, sz), old_size - off); in al_add_le()
344 al->size = old_size; in al_add_le()
Dattrib.c410 u64 old_valid, old_size, old_alloc, new_alloc, new_alloc_tmp; in attr_set_size() local
453 old_size = le64_to_cpu(attr_b->nres.data_size); in attr_set_size()
462 if (keep_prealloc && new_size < old_size) { in attr_set_size()
504 if (new_size > old_size) { in attr_set_size()
683 old_valid = old_size = old_alloc = (u64)vcn << cluster_bits; in attr_set_size()
685 attr_b->nres.alloc_size = cpu_to_le64(old_size); in attr_set_size()
690 if (new_size != old_size || in attr_set_size()
766 old_size = new_alloc_tmp; in attr_set_size()
831 attr_b->nres.data_size = cpu_to_le64(old_size); in attr_set_size()
/linux-6.6.21/rust/alloc/
Dalloc.rs36 fn __rust_realloc(ptr: *mut u8, old_size: usize, align: usize, new_size: usize) -> *mut u8; in __rust_realloc()
209 old_size if old_layout.align() == new_layout.align() => unsafe { in grow_impl()
218 raw_ptr.add(old_size).write_bytes(0, new_size - old_size); in grow_impl()
228 old_size => unsafe { in grow_impl()
230 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), old_size); in grow_impl()
/linux-6.6.21/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.6.21/drivers/md/persistent-data/
Ddm-array.c664 uint32_t old_size, uint32_t new_size, in array_resize() argument
670 if (old_size == new_size) { in array_resize()
681 resize.old_nr_full_blocks = old_size / resize.max_entries; in array_resize()
682 resize.old_nr_entries_in_last_block = old_size % resize.max_entries; in array_resize()
687 r = ((new_size > old_size) ? grow : shrink)(&resize); in array_resize()
696 uint32_t old_size, uint32_t new_size, in dm_array_resize() argument
700 int r = array_resize(info, root, old_size, new_size, value, new_root); in dm_array_resize()
Ddm-array.h111 uint32_t old_size, uint32_t new_size,
/linux-6.6.21/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.6.21/include/trace/events/
Dfscache.h484 __field(loff_t, old_size )
490 __entry->old_size = cookie->object_size;
496 __entry->old_size,
/linux-6.6.21/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.6.21/fs/gfs2/
Dlock_dlm.c1065 uint32_t old_size, new_size; in set_recover_size() local
1080 old_size = ls->ls_recover_size; in set_recover_size()
1081 new_size = old_size; in set_recover_size()
1084 if (new_size == old_size) in set_recover_size()
1096 memcpy(submit, ls->ls_recover_submit, old_size * sizeof(uint32_t)); in set_recover_size()
1097 memcpy(result, ls->ls_recover_result, old_size * sizeof(uint32_t)); in set_recover_size()
/linux-6.6.21/drivers/pci/
Dsetup-bus.c790 resource_size_t old_size, in calculate_iosize() argument
795 if (old_size == 1) in calculate_iosize()
796 old_size = 0; in calculate_iosize()
805 if (size < old_size) in calculate_iosize()
806 size = old_size; in calculate_iosize()
816 resource_size_t old_size, in calculate_memsize() argument
821 if (old_size == 1) in calculate_memsize()
822 old_size = 0; in calculate_memsize()
823 if (size < old_size) in calculate_memsize()
824 size = old_size; in calculate_memsize()
/linux-6.6.21/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.6.21/kernel/
Dkexec_core.c1147 unsigned long old_size, low_size; in crash_shrink_memory() local
1158 old_size = crash_resource_size(&crashk_res) + low_size; in crash_shrink_memory()
1160 if (new_size >= old_size) { in crash_shrink_memory()
1161 ret = (new_size == old_size) ? 0 : -EINVAL; in crash_shrink_memory()
/linux-6.6.21/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.6.21/include/linux/ceph/
Dceph_fs.h418 __le64 size, old_size; /* old_size needed by truncate */ member
443 __le64 old_size; member
477 __le64 size, old_size; /* old_size needed by truncate */ member
/linux-6.6.21/fs/ext4/
Dinline.c1062 static void ext4_update_final_de(void *de_buf, int old_size, int new_size) in ext4_update_final_de() argument
1069 if (old_size) { in ext4_update_final_de()
1070 limit = de_buf + old_size; in ext4_update_final_de()
1073 de_len = ext4_rec_len_from_disk(de->rec_len, old_size); in ext4_update_final_de()
1079 old_size, new_size); in ext4_update_final_de()
1091 int old_size = EXT4_I(dir)->i_inline_size - EXT4_MIN_INLINE_DATA_SIZE; in ext4_update_inline_dir() local
1094 if (new_size - old_size <= ext4_dir_rec_len(1, NULL)) in ext4_update_inline_dir()
1102 ext4_update_final_de(ext4_get_inline_xattr_pos(dir, iloc), old_size, in ext4_update_inline_dir()
/linux-6.6.21/include/linux/
Dlivepatch.h74 unsigned long old_size, new_size; member
/linux-6.6.21/arch/x86/pci/
Dmmconfig-shared.c480 u64 old_size = size; in is_mmconf_reserved() local
489 if (size < (16UL<<20) && size != old_size) in is_mmconf_reserved()
499 if (old_size != size) { in is_mmconf_reserved()
/linux-6.6.21/fs/btrfs/
Dinode-item.c334 u32 old_size; in btrfs_insert_inode_ref() local
340 old_size = btrfs_item_size(path->nodes[0], path->slots[0]); in btrfs_insert_inode_ref()
344 ref = (struct btrfs_inode_ref *)((unsigned long)ref + old_size); in btrfs_insert_inode_ref()
/linux-6.6.21/mm/
Dmemblock.c420 phys_addr_t old_size, new_size, addr, new_end; in memblock_double_array() local
431 old_size = type->max * sizeof(struct memblock_region); in memblock_double_array()
432 new_size = old_size << 1; in memblock_double_array()
437 old_alloc_size = PAGE_ALIGN(old_size); in memblock_double_array()
480 memcpy(new_array, type->regions, old_size); in memblock_double_array()
481 memset(new_array + type->max, 0, old_size); in memblock_double_array()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cotable.c406 size_t old_size = res->guest_memory_size; in vmw_cotable_resize() local
497 res->guest_memory_size = old_size; in vmw_cotable_resize()

123