| /linux-6.15/fs/ntfs3/ |
| H A D | attrlist.c | 295 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()
|
| /linux-6.15/tools/perf/util/ |
| H A D | genelf_debug.c | 413 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.15/fs/xfs/libxfs/ |
| H A D | xfs_rtrefcount_btree.c | 290 short old_size, in xfs_rtrefcountbt_move_ptrs() argument 297 sptr = xfs_rtrefcount_broot_ptr_addr(mp, broot, 1, old_size); in xfs_rtrefcountbt_move_ptrs() 311 unsigned int old_size = ifp->if_broot_bytes; in xfs_rtrefcountbt_broot_realloc() local 317 if (new_size == old_size) in xfs_rtrefcountbt_broot_realloc() 320 if (new_size > old_size) { in xfs_rtrefcountbt_broot_realloc() 327 if (old_size == 0) in xfs_rtrefcountbt_broot_realloc() 335 old_numrecs = xfs_rtrefcountbt_maxrecs(mp, old_size, level); in xfs_rtrefcountbt_broot_realloc() 338 xfs_rtrefcountbt_move_ptrs(mp, broot, old_size, in xfs_rtrefcountbt_broot_realloc() 347 ASSERT(ifp->if_broot != NULL && old_size > 0); in xfs_rtrefcountbt_broot_realloc() 357 xfs_rtrefcountbt_move_ptrs(mp, ifp->if_broot, old_size, in xfs_rtrefcountbt_broot_realloc()
|
| H A D | xfs_bmap_btree.c | 523 short old_size, in xfs_bmbt_move_ptrs() argument 530 sptr = xfs_bmap_broot_ptr_addr(mp, broot, 1, old_size); in xfs_bmbt_move_ptrs() 562 unsigned int old_size = ifp->if_broot_bytes; in xfs_bmap_broot_realloc() local 575 if (new_size == old_size) in xfs_bmap_broot_realloc() 578 if (new_size > old_size) { in xfs_bmap_broot_realloc() 585 if (old_size == 0) in xfs_bmap_broot_realloc() 594 old_numrecs = xfs_bmbt_maxrecs(mp, old_size, false); in xfs_bmap_broot_realloc() 598 xfs_bmbt_move_ptrs(mp, broot, old_size, new_size, old_numrecs); in xfs_bmap_broot_realloc() 606 ASSERT(ifp->if_broot != NULL && old_size > 0 && new_size > 0); in xfs_bmap_broot_realloc() 613 xfs_bmbt_move_ptrs(mp, ifp->if_broot, old_size, new_size, new_numrecs); in xfs_bmap_broot_realloc()
|
| H A D | xfs_rtrmap_btree.c | 412 short old_size, in xfs_rtrmapbt_move_ptrs() argument 419 sptr = xfs_rtrmap_broot_ptr_addr(mp, broot, 1, old_size); in xfs_rtrmapbt_move_ptrs() 433 unsigned int old_size = ifp->if_broot_bytes; in xfs_rtrmapbt_broot_realloc() local 439 if (new_size == old_size) in xfs_rtrmapbt_broot_realloc() 442 if (new_size > old_size) { in xfs_rtrmapbt_broot_realloc() 449 if (old_size == 0) in xfs_rtrmapbt_broot_realloc() 457 old_numrecs = xfs_rtrmapbt_maxrecs(mp, old_size, level == 0); in xfs_rtrmapbt_broot_realloc() 460 xfs_rtrmapbt_move_ptrs(mp, broot, old_size, new_size, in xfs_rtrmapbt_broot_realloc() 469 ASSERT(ifp->if_broot != NULL && old_size > 0); in xfs_rtrmapbt_broot_realloc() 479 xfs_rtrmapbt_move_ptrs(mp, ifp->if_broot, old_size, new_size, in xfs_rtrmapbt_broot_realloc()
|
| /linux-6.15/fs/ubifs/ |
| H A D | replay.c | 57 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() 387 loff_t old_size, loff_t new_size) in insert_node() argument 409 r->old_size = old_size; in insert_node() 782 loff_t old_size = le64_to_cpu(trun->old_size); in replay_bud() local 787 if (old_size < 0 || old_size > c->max_inode_sz || in replay_bud() 789 old_size <= new_size) { in replay_bud() 801 old_size, new_size); in replay_bud()
|
| H A D | xattr.c | 184 int old_size; in change_xattr() local 201 old_size = ui->data_len; in change_xattr() 206 host_ui->xattr_size -= CALC_XATTR_BYTES(old_size); in change_xattr() 225 host_ui->xattr_size += CALC_XATTR_BYTES(old_size); in change_xattr()
|
| /linux-6.15/include/trace/events/ |
| H A D | hugetlbfs.h | 96 __field(loff_t, old_size) 107 __entry->old_size = inode->i_size; 114 __entry->old_size, __entry->ia_size)
|
| H A D | fscache.h | 488 __field(loff_t, old_size ) 494 __entry->old_size = cookie->object_size; 500 __entry->old_size,
|
| /linux-6.15/drivers/md/dm-vdo/ |
| H A D | memory-alloc.c | 340 int vdo_reallocate_memory(void *ptr, size_t old_size, size_t size, const char *what, in vdo_reallocate_memory() argument 356 if (old_size < size) in vdo_reallocate_memory() 357 size = old_size; in vdo_reallocate_memory()
|
| H A D | memory-alloc.h | 126 int __must_check vdo_reallocate_memory(void *ptr, size_t old_size, size_t size,
|
| /linux-6.15/kernel/ |
| H A D | crash_core.c | 367 unsigned long old_size, low_size; in crash_shrink_memory() local 378 old_size = crash_resource_size(&crashk_res) + low_size; in crash_shrink_memory() 380 if (new_size >= old_size) { in crash_shrink_memory() 381 ret = (new_size == old_size) ? 0 : -EINVAL; in crash_shrink_memory()
|
| /linux-6.15/mm/ |
| H A D | shrinker.c | 114 int old_size, int new_nr_max) in expand_one_shrinker_info() argument 137 memcpy(new->unit, old->unit, old_size); in expand_one_shrinker_info() 154 int new_size, old_size = 0; in expand_shrinker_info() local 163 old_size = shrinker_unit_size(shrinker_nr_max); in expand_shrinker_info() 167 ret = expand_one_shrinker_info(memcg, new_size, old_size, in expand_shrinker_info()
|
| /linux-6.15/drivers/md/persistent-data/ |
| H A D | dm-array.c | 664 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()
|
| H A D | dm-array.h | 111 uint32_t old_size, uint32_t new_size,
|
| /linux-6.15/fs/cachefiles/ |
| H A D | interface.c | 286 loff_t old_size = cookie->object_size; in cachefiles_resize_cookie() local 288 _enter("%llu->%llu", old_size, new_size); in cachefiles_resize_cookie() 290 if (new_size < old_size) { in cachefiles_resize_cookie()
|
| /linux-6.15/drivers/gpu/drm/lima/ |
| H A D | lima_gem.c | 26 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() 90 ret = lima_vm_map_bo(vm, bo, old_size >> PAGE_SHIFT); in lima_heap_alloc()
|
| /linux-6.15/arch/sparc/mm/ |
| H A D | tsb.c | 399 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.15/fs/gfs2/ |
| H A D | lock_dlm.c | 1114 uint32_t old_size, new_size; in set_recover_size() local 1129 old_size = ls->ls_recover_size; in set_recover_size() 1130 new_size = old_size; in set_recover_size() 1133 if (new_size == old_size) in set_recover_size() 1145 memcpy(submit, ls->ls_recover_submit, old_size * sizeof(uint32_t)); in set_recover_size() 1146 memcpy(result, ls->ls_recover_result, old_size * sizeof(uint32_t)); in set_recover_size()
|
| /linux-6.15/fs/ext4/ |
| H A D | inline.c | 997 static void ext4_update_final_de(void *de_buf, int old_size, int new_size) in ext4_update_final_de() argument 1004 if (old_size) { in ext4_update_final_de() 1005 limit = de_buf + old_size; in ext4_update_final_de() 1008 de_len = ext4_rec_len_from_disk(de->rec_len, old_size); in ext4_update_final_de() 1014 old_size, new_size); in ext4_update_final_de() 1026 int old_size = EXT4_I(dir)->i_inline_size - EXT4_MIN_INLINE_DATA_SIZE; in ext4_update_inline_dir() local 1029 if (new_size - old_size <= ext4_dir_rec_len(1, NULL)) in ext4_update_inline_dir() 1037 ext4_update_final_de(ext4_get_inline_xattr_pos(dir, iloc), old_size, in ext4_update_inline_dir()
|
| /linux-6.15/drivers/md/bcache/ |
| H A D | extents.c | 338 unsigned int old_size, sectors_found = 0; in bch_extent_insert_fixup() local 360 old_size = KEY_SIZE(k); in bch_extent_insert_fixup() 465 bch_subtract_dirty(k, c, old_offset, old_size - KEY_SIZE(k)); in bch_extent_insert_fixup()
|
| /linux-6.15/include/linux/ceph/ |
| H A D | ceph_fs.h | 423 __le64 size, old_size; /* old_size needed by truncate */ member 448 __le64 old_size; member 482 __le64 size, old_size; /* old_size needed by truncate */ member
|
| /linux-6.15/drivers/pci/ |
| H A D | setup-bus.c | 903 resource_size_t old_size, in calculate_iosize() argument 908 if (old_size == 1) in calculate_iosize() 909 old_size = 0; in calculate_iosize() 920 return ALIGN(max(size, old_size), align); in calculate_iosize() 927 resource_size_t old_size, in calculate_memsize() argument 932 if (old_size == 1) in calculate_memsize() 933 old_size = 0; in calculate_memsize() 936 return ALIGN(max(size, old_size), align); in calculate_memsize()
|
| /linux-6.15/include/linux/ |
| H A D | livepatch.h | 74 unsigned long old_size, new_size; member
|
| /linux-6.15/arch/x86/pci/ |
| H A D | mmconfig-shared.c | 476 u64 old_size = size; in is_mmconf_reserved() local 485 if (size < (16UL<<20) && size != old_size) in is_mmconf_reserved() 494 if (old_size != size) { in is_mmconf_reserved()
|