Home
last modified time | relevance | path

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

12

/linux/fs/ntfs/
A Drunlist.c65 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc()
76 old_size = new_size; in ntfs_rl_realloc()
111 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc_nofail()
1489 int old_size; in ntfs_rl_truncate_nolock() local
1636 int old_size; in ntfs_rl_punch_nolock() local
1758 trl = ntfs_rl_realloc(runlist->rl, old_size, old_size + 1); in ntfs_rl_punch_nolock()
1761 old_size++; in ntfs_rl_punch_nolock()
1828 trl = ntfs_rl_realloc(runlist->rl, old_size, old_size + 1); in ntfs_rl_punch_nolock()
1831 old_size++; in ntfs_rl_punch_nolock()
1863 trl = ntfs_rl_realloc(runlist->rl, old_size, old_size + 2); in ntfs_rl_punch_nolock()
[all …]
A Dinode.c2346 s64 new_size, old_size, nr_freed, new_alloc_size, old_alloc_size; in ntfs_truncate() local
2410 old_size = ntfs_attr_size(a); in ntfs_truncate()
2426 if (new_size - old_size >= 0) { in ntfs_truncate()
2428 if (new_size == old_size) in ntfs_truncate()
2454 new_size > old_size ? "exceed " in ntfs_truncate()
2467 i_size_write(vi, old_size); in ntfs_truncate()
2542 err = ntfs_attr_make_non_resident(ni, old_size); in ntfs_truncate()
2814 old_size = -1; in ntfs_truncate()
2820 else if (old_size >= 0) in ntfs_truncate()
2821 i_size_write(vi, old_size); in ntfs_truncate()
[all …]
/linux/mm/
A Dlist_lru.c392 int old_size, int new_size) in memcg_update_list_lru_node() argument
396 BUG_ON(old_size > new_size); in memcg_update_list_lru_node()
416 int old_size, int new_size) in memcg_cancel_update_list_lru_node() argument
462 int old_size, int new_size) in memcg_update_list_lru() argument
468 old_size, new_size)) in memcg_update_list_lru()
478 old_size, new_size); in memcg_update_list_lru()
484 int old_size, int new_size) in memcg_cancel_update_list_lru() argument
490 old_size, new_size); in memcg_cancel_update_list_lru()
497 int old_size = memcg_nr_cache_ids; in memcg_update_all_list_lrus() local
501 ret = memcg_update_list_lru(lru, old_size, new_size); in memcg_update_all_list_lrus()
[all …]
A Dmemblock.c404 phys_addr_t old_size, new_size, addr, new_end; in memblock_double_array() local
415 old_size = type->max * sizeof(struct memblock_region); in memblock_double_array()
416 new_size = old_size << 1; in memblock_double_array()
421 old_alloc_size = PAGE_ALIGN(old_size); in memblock_double_array()
464 memcpy(new_array, type->regions, old_size); in memblock_double_array()
465 memset(new_array + type->max, 0, old_size); in memblock_double_array()
/linux/tools/perf/util/
A 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/fs/ntfs3/
A Dattrlist.c279 size_t asize, new_asize, old_size; in al_add_le() local
287 old_size = al->size; in al_add_le()
288 new_size = old_size + sz; in al_add_le()
289 asize = al_aligned(old_size); in al_add_le()
303 memcpy(Add2Ptr(ptr, off + sz), le, old_size - off); in al_add_le()
308 memmove(Add2Ptr(le, sz), le, old_size - off); in al_add_le()
327 memmove(le, Add2Ptr(le, sz), old_size - off); in al_add_le()
328 al->size = old_size; in al_add_le()
A Dattrib.c416 u64 old_valid, old_size, old_alloc, new_alloc, new_alloc_tmp; in attr_set_size() local
454 old_size = le64_to_cpu(attr_b->nres.data_size); in attr_set_size()
461 if (keep_prealloc && new_size < old_size) { in attr_set_size()
500 if (new_size > old_size) { in attr_set_size()
669 if (new_size != old_size || in attr_set_size()
736 old_size = new_alloc_tmp; in attr_set_size()
/linux/fs/ubifs/
A 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()
A 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()
A Djournal.c1510 loff_t old_size, loff_t new_size) in ubifs_jnl_truncate() argument
1524 (unsigned long)inum, old_size, new_size); in ubifs_jnl_truncate()
1541 trun->old_size = cpu_to_le64(old_size); in ubifs_jnl_truncate()
1632 bit = old_size & (UBIFS_BLOCK_SIZE - 1); in ubifs_jnl_truncate()
1633 blk = (old_size >> UBIFS_BLOCK_SHIFT) - (bit ? 0 : 1); in ubifs_jnl_truncate()
/linux/drivers/md/persistent-data/
A 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()
A Ddm-array.h110 uint32_t old_size, uint32_t new_size,
/linux/drivers/pci/
A 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/fs/btrfs/
A Dinode-item.c329 u32 old_size; in btrfs_insert_inode_ref() local
335 old_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in btrfs_insert_inode_ref()
339 ref = (struct btrfs_inode_ref *)((unsigned long)ref + old_size); in btrfs_insert_inode_ref()
/linux/drivers/gpu/drm/lima/
A Dlima_gem.c25 size_t old_size = bo->heap_size; in lima_heap_alloc() local
54 for (i = old_size >> PAGE_SHIFT; i < new_size >> PAGE_SHIFT; i++) { in lima_heap_alloc()
93 ret = lima_vm_map_bo(vm, bo, old_size >> PAGE_SHIFT); in lima_heap_alloc()
/linux/fs/gfs2/
A Dlock_dlm.c1060 uint32_t old_size, new_size; in set_recover_size() local
1075 old_size = ls->ls_recover_size; in set_recover_size()
1076 new_size = old_size; in set_recover_size()
1079 if (new_size == old_size) in set_recover_size()
1091 memcpy(submit, ls->ls_recover_submit, old_size * sizeof(uint32_t)); in set_recover_size()
1092 memcpy(result, ls->ls_recover_result, old_size * sizeof(uint32_t)); in set_recover_size()
/linux/arch/sparc/mm/
A 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/kernel/
A Dkexec_core.c1016 unsigned long old_size; in crash_shrink_memory() local
1027 old_size = (end == 0) ? 0 : end - start + 1; in crash_shrink_memory()
1028 if (new_size >= old_size) { in crash_shrink_memory()
1029 ret = (new_size == old_size) ? 0 : -EINVAL; in crash_shrink_memory()
/linux/fs/ext4/
A Dinline.c1085 static void ext4_update_final_de(void *de_buf, int old_size, int new_size) in ext4_update_final_de() argument
1092 if (old_size) { in ext4_update_final_de()
1093 limit = de_buf + old_size; in ext4_update_final_de()
1096 de_len = ext4_rec_len_from_disk(de->rec_len, old_size); in ext4_update_final_de()
1102 old_size, new_size); in ext4_update_final_de()
1114 int old_size = EXT4_I(dir)->i_inline_size - EXT4_MIN_INLINE_DATA_SIZE; in ext4_update_inline_dir() local
1117 if (new_size - old_size <= ext4_dir_rec_len(1, NULL)) in ext4_update_inline_dir()
1125 ext4_update_final_de(ext4_get_inline_xattr_pos(dir, iloc), old_size, in ext4_update_inline_dir()
A Dxattr.c1564 size_t old_size, new_size; in ext4_xattr_set_entry() local
1568 old_size = (!s->not_found && !here->e_value_inum) ? in ext4_xattr_set_entry()
1576 if (new_size && new_size == old_size) { in ext4_xattr_set_entry()
1613 free += EXT4_XATTR_LEN(name_len) + old_size; in ext4_xattr_set_entry()
1628 (min_offs + old_size - new_size) < in ext4_xattr_set_entry()
1698 memmove(first_val + old_size, first_val, val - first_val); in ext4_xattr_set_entry()
1699 memset(first_val, 0, old_size); in ext4_xattr_set_entry()
1700 min_offs += old_size; in ext4_xattr_set_entry()
1709 last->e_value_offs = cpu_to_le16(o + old_size); in ext4_xattr_set_entry()
/linux/include/linux/ceph/
A Dceph_fs.h412 __le64 size, old_size; /* old_size needed by truncate */ member
437 __le32 old_size; member
471 __le64 size, old_size; /* old_size needed by truncate */ member
/linux/arch/x86/pci/
A 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/drivers/md/bcache/
A 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/include/linux/
A Dlivepatch.h75 unsigned long old_size, new_size; member
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_cotable.c391 size_t old_size = res->backup_size; in vmw_cotable_resize() local
474 res->backup_size = old_size; in vmw_cotable_resize()

Completed in 60 milliseconds

12