| /linux/tools/include/nolibc/sys/ |
| H A D | mman.h | 47 void *sys_mremap(void *old_address, size_t old_size, size_t new_size, int flags, void *new_address) in sys_mremap() argument 49 return (void *)my_syscall5(__NR_mremap, old_address, old_size, in sys_mremap() 54 void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, void *new_address) in mremap() argument 56 void *ret = sys_mremap(old_address, old_size, new_size, flags, new_address); in mremap()
|
| /linux/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/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/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 | 511 short old_size, in xfs_bmbt_move_ptrs() argument 518 sptr = xfs_bmap_broot_ptr_addr(mp, broot, 1, old_size); in xfs_bmbt_move_ptrs() 550 unsigned int old_size = ifp->if_broot_bytes; in xfs_bmap_broot_realloc() local 563 if (new_size == old_size) in xfs_bmap_broot_realloc() 566 if (new_size > old_size) { in xfs_bmap_broot_realloc() 573 if (old_size == 0) in xfs_bmap_broot_realloc() 582 old_numrecs = xfs_bmbt_maxrecs(mp, old_size, false); in xfs_bmap_broot_realloc() 586 xfs_bmbt_move_ptrs(mp, broot, old_size, new_size, old_numrecs); in xfs_bmap_broot_realloc() 594 ASSERT(ifp->if_broot != NULL && old_size > 0 && new_size > 0); in xfs_bmap_broot_realloc() 601 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 | 391 short old_size, in xfs_rtrmapbt_move_ptrs() argument 398 sptr = xfs_rtrmap_broot_ptr_addr(mp, broot, 1, old_size); in xfs_rtrmapbt_move_ptrs() 412 unsigned int old_size = ifp->if_broot_bytes; in xfs_rtrmapbt_broot_realloc() local 418 if (new_size == old_size) in xfs_rtrmapbt_broot_realloc() 421 if (new_size > old_size) { in xfs_rtrmapbt_broot_realloc() 428 if (old_size == 0) in xfs_rtrmapbt_broot_realloc() 436 old_numrecs = xfs_rtrmapbt_maxrecs(mp, old_size, level == 0); in xfs_rtrmapbt_broot_realloc() 439 xfs_rtrmapbt_move_ptrs(mp, broot, old_size, new_size, in xfs_rtrmapbt_broot_realloc() 448 ASSERT(ifp->if_broot != NULL && old_size > 0); in xfs_rtrmapbt_broot_realloc() 458 xfs_rtrmapbt_move_ptrs(mp, ifp->if_broot, old_size, new_size, in xfs_rtrmapbt_broot_realloc()
|
| /linux/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()
|
| H A D | journal.c | 1691 loff_t old_size, loff_t new_size) in ubifs_jnl_truncate() argument 1706 (unsigned long)inum, old_size, new_size); in ubifs_jnl_truncate() 1726 trun->old_size = cpu_to_le64(old_size); in ubifs_jnl_truncate() 1818 bit = old_size & (UBIFS_BLOCK_SIZE - 1); in ubifs_jnl_truncate() 1819 blk = (old_size >> UBIFS_BLOCK_SHIFT) - (bit ? 0 : 1); in ubifs_jnl_truncate()
|
| /linux/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/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/kernel/ |
| H A D | crash_core.c | 388 unsigned long old_size, low_size; in crash_shrink_memory() local 399 old_size = crash_resource_size(&crashk_res) + low_size; in crash_shrink_memory() 401 if (new_size >= old_size) { in crash_shrink_memory() 402 ret = (new_size == old_size) ? 0 : -EINVAL; in crash_shrink_memory()
|
| /linux/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()
|
| H A D | memblock.c | 433 phys_addr_t old_size, new_size, addr, new_end; in memblock_double_array() local 444 old_size = type->max * sizeof(struct memblock_region); in memblock_double_array() 445 new_size = old_size << 1; in memblock_double_array() 450 old_alloc_size = PAGE_ALIGN(old_size); in memblock_double_array() 500 memcpy(new_array, type->regions, old_size); in memblock_double_array() 501 memset(new_array + type->max, 0, old_size); in memblock_double_array()
|
| /linux/drivers/pci/ |
| H A D | setup-bus.c | 1049 resource_size_t old_size, in calculate_iosize() argument 1054 if (old_size == 1) in calculate_iosize() 1055 old_size = 0; in calculate_iosize() 1066 return ALIGN(max(size, old_size), align); in calculate_iosize() 1073 resource_size_t old_size, in calculate_memsize() argument 1078 if (old_size == 1) in calculate_memsize() 1079 old_size = 0; in calculate_memsize() 1082 return ALIGN(max(size, old_size), align); in calculate_memsize() 1324 resource_size_t old_size; in pbus_size_mem() local 1395 old_size = resource_size(b_res); in pbus_size_mem() [all …]
|
| /linux/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/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/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/drivers/md/bcache/ |
| H A D | extents.c | 331 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/tools/testing/selftests/mm/ |
| H A D | vm_util.h | 141 void *sys_mremap(void *old_address, unsigned long old_size,
|
| H A D | vm_util.c | 573 void *sys_mremap(void *old_address, unsigned long old_size, in sys_mremap() argument 577 old_size, new_size, flags, in sys_mremap()
|
| /linux/arch/um/os-Linux/ |
| H A D | file.c | 716 void *os_mremap_rw_shared(void *old_addr, size_t old_size, size_t new_size) in os_mremap_rw_shared() argument 720 res = mremap(old_addr, old_size, new_size, MREMAP_MAYMOVE, NULL); in os_mremap_rw_shared()
|