Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 25 of 117) sorted by relevance

12345

/Linux-v5.4/fs/xfs/libxfs/
Dxfs_inode_fork.c351 size_t new_size; in xfs_iroot_realloc() local
369 new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, rec_diff); in xfs_iroot_realloc()
370 ifp->if_broot = kmem_alloc(new_size, KM_NOFS); in xfs_iroot_realloc()
371 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc()
383 new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, new_max); in xfs_iroot_realloc()
384 ifp->if_broot = kmem_realloc(ifp->if_broot, new_size, in xfs_iroot_realloc()
389 (int)new_size); in xfs_iroot_realloc()
390 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc()
407 new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, new_max); in xfs_iroot_realloc()
409 new_size = 0; in xfs_iroot_realloc()
[all …]
/Linux-v5.4/fs/reiserfs/
Dobjectid.c183 int new_size = (s->s_blocksize - SB_SIZE) / sizeof(__u32) / 2 * 2; in reiserfs_convert_objectid_map_v1() local
193 if (cur_size > new_size) { in reiserfs_convert_objectid_map_v1()
198 objectid_map[new_size - 1] = objectid_map[cur_size - 1]; in reiserfs_convert_objectid_map_v1()
199 set_sb_oid_cursize(disk_sb, new_size); in reiserfs_convert_objectid_map_v1()
202 for (i = new_size - 1; i >= 0; i--) { in reiserfs_convert_objectid_map_v1()
203 objectid_map[i + (old_max - new_size)] = objectid_map[i]; in reiserfs_convert_objectid_map_v1()
207 set_sb_oid_maxsize(disk_sb, new_size); in reiserfs_convert_objectid_map_v1()
/Linux-v5.4/scripts/kconfig/
Dlexer.l58 int new_size = text_size + size + 1; in append_string() local
59 if (new_size > text_asize) { in append_string()
60 new_size += START_STRSIZE - 1; in append_string()
61 new_size &= -START_STRSIZE; in append_string()
62 text = xrealloc(text, new_size); in append_string()
63 text_asize = new_size; in append_string()
/Linux-v5.4/drivers/staging/most/dim2/
Ddim2.c446 u16 new_size; in configure_channel() local
465 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel()
466 if (new_size == 0) { in configure_channel()
470 ccfg->buffer_size = new_size; in configure_channel()
471 if (new_size != buf_size) in configure_channel()
473 hdm_ch->name, buf_size, new_size); in configure_channel()
476 is_tx ? new_size * 2 : new_size); in configure_channel()
479 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel()
480 if (new_size == 0) { in configure_channel()
484 ccfg->buffer_size = new_size; in configure_channel()
[all …]
/Linux-v5.4/mm/
Dlist_lru.c402 int old_size, int new_size) in memcg_update_list_lru_node() argument
406 BUG_ON(old_size > new_size); in memcg_update_list_lru_node()
410 new = kvmalloc(sizeof(*new) + new_size * sizeof(void *), GFP_KERNEL); in memcg_update_list_lru_node()
414 if (__memcg_init_list_lru_node(new, old_size, new_size)) { in memcg_update_list_lru_node()
437 int old_size, int new_size) in memcg_cancel_update_list_lru_node() argument
445 __memcg_destroy_list_lru_node(memcg_lrus, old_size, new_size); in memcg_cancel_update_list_lru_node()
483 int old_size, int new_size) in memcg_update_list_lru() argument
492 old_size, new_size)) in memcg_update_list_lru()
502 old_size, new_size); in memcg_update_list_lru()
508 int old_size, int new_size) in memcg_cancel_update_list_lru() argument
[all …]
Dslab_common.c1638 static __always_inline void *__do_krealloc(const void *p, size_t new_size, in __do_krealloc() argument
1647 if (ks >= new_size) { in __do_krealloc()
1648 p = kasan_krealloc((void *)p, new_size, flags); in __do_krealloc()
1652 ret = kmalloc_track_caller(new_size, flags); in __do_krealloc()
1671 void *__krealloc(const void *p, size_t new_size, gfp_t flags) in __krealloc() argument
1673 if (unlikely(!new_size)) in __krealloc()
1676 return __do_krealloc(p, new_size, flags); in __krealloc()
1694 void *krealloc(const void *p, size_t new_size, gfp_t flags) in krealloc() argument
1698 if (unlikely(!new_size)) { in krealloc()
1703 ret = __do_krealloc(p, new_size, flags); in krealloc()
/Linux-v5.4/arch/sparc/mm/
Dtsb.c370 static unsigned long tsb_size_to_rss_limit(unsigned long new_size) in tsb_size_to_rss_limit() argument
372 unsigned long num_ents = (new_size / sizeof(struct tsb)); in tsb_size_to_rss_limit()
399 unsigned long new_size, old_size, flags; in tsb_grow() local
409 for (new_size = 8192; new_size < max_tsb_size; new_size <<= 1UL) { in tsb_grow()
410 new_rss_limit = tsb_size_to_rss_limit(new_size); in tsb_grow()
416 if (new_size == max_tsb_size) in tsb_grow()
421 if (new_size > (PAGE_SIZE * 2)) in tsb_grow()
435 new_size = 8192; in tsb_grow()
449 tsb_init(new_tsb, new_size); in tsb_grow()
509 copy_tsb(old_tsb_base, old_size, new_tsb_base, new_size, in tsb_grow()
[all …]
/Linux-v5.4/fs/jfs/
Dxattr.c593 int new_size) in ea_put() argument
599 if (new_size == 0) { in ea_put()
603 assert(new_size <= sizeof (ji->i_inline_ea)); in ea_put()
606 DXDsize(&ea_buf->new_ea, new_size); in ea_put()
610 rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea); in ea_put()
617 rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea); in ea_put()
663 int new_size; in __jfs_setxattr() local
679 new_size = sizeof (struct jfs_ea_list); in __jfs_setxattr()
695 new_size += EA_SIZE(ea); in __jfs_setxattr()
710 new_size += sizeof (struct jfs_ea) + namelen + 1 + value_len; in __jfs_setxattr()
[all …]
Dnamei.c471 s64 new_size = 0; in jfs_unlink() local
526 if ((new_size = commitZeroLink(tid, ip)) < 0) { in jfs_unlink()
532 rc = new_size; in jfs_unlink()
545 if (new_size) in jfs_unlink()
561 while (new_size && (rc == 0)) { in jfs_unlink()
564 new_size = xtTruncate_pmap(tid, ip, new_size); in jfs_unlink()
565 if (new_size < 0) { in jfs_unlink()
567 rc = new_size; in jfs_unlink()
1079 s64 new_size = 0; in jfs_rename() local
1193 if ((new_size = commitZeroLink(tid, new_ip)) < 0) { in jfs_rename()
[all …]
/Linux-v5.4/fs/xfs/
Dxfs_inode.h104 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof() argument
108 if (new_size > i_size || new_size < 0) in xfs_new_eof()
109 new_size = i_size; in xfs_new_eof()
110 return new_size > ip->i_d.di_size ? new_size : 0; in xfs_new_eof()
463 xfs_fsize_t new_size) in xfs_itruncate_extents() argument
465 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
/Linux-v5.4/drivers/hid/
Dhid-gembird.c67 size_t new_size = *rsize + delta_size; in gembird_report_fixup() local
72 new_rdesc = devm_kzalloc(&hdev->dev, new_size, GFP_KERNEL); in gembird_report_fixup()
90 *rsize = new_size; in gembird_report_fixup()
/Linux-v5.4/arch/s390/appldata/
Dappldata_os.c100 unsigned int new_size; in appldata_get_os_data() local
136 new_size = sizeof(struct appldata_os_data) + in appldata_get_os_data()
138 if (ops.size != new_size) { in appldata_get_os_data()
142 (unsigned long) ops.data, new_size, in appldata_get_os_data()
156 ops.size = new_size; in appldata_get_os_data()
/Linux-v5.4/fs/ubifs/
Dreplay.c58 loff_t new_size; member
187 min_blk = r->new_size / UBIFS_BLOCK_SIZE; in trun_remove_range()
188 if (r->new_size & (UBIFS_BLOCK_SIZE - 1)) in trun_remove_range()
285 r->new_size); in apply_replay_entry()
385 loff_t old_size, loff_t new_size) in insert_node() argument
408 r->new_size = new_size; in insert_node()
755 loff_t new_size = le64_to_cpu(ino->size); in replay_bud() local
761 &used, 0, new_size); in replay_bud()
767 loff_t new_size = le32_to_cpu(dn->size) + in replay_bud() local
773 &used, 0, new_size); in replay_bud()
[all …]
Dfile.c1117 loff_t old_size = inode->i_size, new_size = attr->ia_size; in do_truncation() local
1118 int offset = new_size & (UBIFS_BLOCK_SIZE - 1), budgeted = 1; in do_truncation()
1121 dbg_gen("ino %lu, size %lld -> %lld", inode->i_ino, old_size, new_size); in do_truncation()
1129 if (new_size & (UBIFS_BLOCK_SIZE - 1)) in do_truncation()
1141 if (new_size || err != -ENOSPC) in do_truncation()
1146 truncate_setsize(inode, new_size); in do_truncation()
1149 pgoff_t index = new_size >> PAGE_SHIFT; in do_truncation()
1167 offset = new_size & in do_truncation()
1195 err = ubifs_jnl_truncate(c, inode, old_size, new_size); in do_truncation()
1222 loff_t new_size = attr->ia_size; in do_setattr() local
[all …]
/Linux-v5.4/arch/x86/platform/efi/
Dquirks.c246 phys_addr_t new_phys, new_size; in efi_arch_mem_reserve() local
278 new_size = efi.memmap.desc_size * num_entries; in efi_arch_mem_reserve()
286 new = early_memremap(new_phys, new_size); in efi_arch_mem_reserve()
293 early_memunmap(new, new_size); in efi_arch_mem_reserve()
409 phys_addr_t new_phys, new_size; in efi_free_boot_services() local
464 new_size = efi.memmap.desc_size * num_entries; in efi_free_boot_services()
471 new = memremap(new_phys, new_size, MEMREMAP_WB); in efi_free_boot_services()
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cotable.c381 static int vmw_cotable_resize(struct vmw_resource *res, size_t new_size) in vmw_cotable_resize() argument
411 ret = vmw_bo_init(dev_priv, buf, new_size, &vmw_mob_ne_placement, in vmw_cotable_resize()
460 res->backup_size = new_size; in vmw_cotable_resize()
508 size_t new_size = res->backup_size; in vmw_cotable_create() local
514 while (needed_size > new_size) in vmw_cotable_create()
515 new_size *= 2; in vmw_cotable_create()
517 if (likely(new_size <= res->backup_size)) { in vmw_cotable_create()
527 return vmw_cotable_resize(res, new_size); in vmw_cotable_create()
/Linux-v5.4/drivers/staging/exfat/
DTODO7 ffsTruncateFile - if (old_size <= new_size) {
10 does the 'fid->size = new_size' and do the inode update....
/Linux-v5.4/drivers/staging/comedi/
Dcomedi_buf.c258 unsigned long new_size) in comedi_buf_alloc() argument
265 new_size = (new_size + PAGE_SIZE - 1) & PAGE_MASK; in comedi_buf_alloc()
268 if (async->prealloc_buf && async->prealloc_bufsz == new_size) in comedi_buf_alloc()
275 if (new_size) { in comedi_buf_alloc()
276 unsigned int n_pages = new_size >> PAGE_SHIFT; in comedi_buf_alloc()
286 async->prealloc_bufsz = new_size; in comedi_buf_alloc()
/Linux-v5.4/drivers/scsi/cxlflash/
Dvlun.c505 u64 *new_size) in grow_lxt() argument
516 u64 delta = *new_size - rhte->lxt_cnt; in grow_lxt()
601 *new_size = my_new_size; in grow_lxt()
623 u64 *new_size) in shrink_lxt() argument
636 u64 delta = rhte->lxt_cnt - *new_size; in shrink_lxt()
709 *new_size = my_new_size; in shrink_lxt()
741 u64 new_size; in _cxlflash_vlun_resize() local
755 new_size = DIV_ROUND_UP(nsectors, MC_CHUNK_SIZE); in _cxlflash_vlun_resize()
759 new_size); in _cxlflash_vlun_resize()
789 if (new_size > rhte->lxt_cnt) in _cxlflash_vlun_resize()
[all …]
/Linux-v5.4/fs/ntfs/
Dattrib.c1421 int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size) in ntfs_attr_record_resize() argument
1423 ntfs_debug("Entering for new_size %u.", new_size); in ntfs_attr_record_resize()
1425 if (new_size & 7) in ntfs_attr_record_resize()
1426 new_size = (new_size + 7) & ~7; in ntfs_attr_record_resize()
1428 if (new_size != le32_to_cpu(a->length)) { in ntfs_attr_record_resize()
1430 le32_to_cpu(a->length) + new_size; in ntfs_attr_record_resize()
1435 memmove((u8*)a + new_size, (u8*)a + le32_to_cpu(a->length), in ntfs_attr_record_resize()
1441 if (new_size >= offsetof(ATTR_REC, length) + sizeof(a->length)) in ntfs_attr_record_resize()
1442 a->length = cpu_to_le32(new_size); in ntfs_attr_record_resize()
1466 const u32 new_size) in ntfs_resident_attr_value_resize() argument
[all …]
Drunlist.c61 int old_size, int new_size) in ntfs_rl_realloc() argument
66 new_size = PAGE_ALIGN(new_size * sizeof(*rl)); in ntfs_rl_realloc()
67 if (old_size == new_size) in ntfs_rl_realloc()
70 new_rl = ntfs_malloc_nofs(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()
107 int old_size, int new_size) in ntfs_rl_realloc_nofail() argument
112 new_size = PAGE_ALIGN(new_size * sizeof(*rl)); in ntfs_rl_realloc_nofail()
113 if (old_size == new_size) in ntfs_rl_realloc_nofail()
116 new_rl = ntfs_malloc_nofs_nofail(new_size); in ntfs_rl_realloc_nofail()
[all …]
Dattrib.h88 extern int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size);
90 const u32 new_size);
/Linux-v5.4/fs/f2fs/
Dfile.c1108 size_t new_size; in __clone_blkaddrs() local
1142 new_size = (dst + i) << PAGE_SHIFT; in __clone_blkaddrs()
1143 if (dst_inode->i_size < new_size) in __clone_blkaddrs()
1144 f2fs_i_size_write(dst_inode, new_size); in __clone_blkaddrs()
1255 loff_t new_size; in f2fs_collapse_range() local
1283 new_size = i_size_read(inode) - len; in f2fs_collapse_range()
1284 truncate_pagecache(inode, new_size); in f2fs_collapse_range()
1286 ret = f2fs_truncate_blocks(inode, new_size, true); in f2fs_collapse_range()
1289 f2fs_i_size_write(inode, new_size); in f2fs_collapse_range()
1343 loff_t new_size = i_size_read(inode); in f2fs_zero_range() local
[all …]
/Linux-v5.4/drivers/misc/vmw_vmci/
Dvmci_handle_array.c54 size_t new_size = handle_arr_calc_size(array->capacity + in vmci_handle_arr_append_entry() local
60 new_array = krealloc(array, new_size, GFP_ATOMIC); in vmci_handle_arr_append_entry()
/Linux-v5.4/drivers/md/
Ddm-thin-metadata.h207 int dm_pool_resize_data_dev(struct dm_pool_metadata *pmd, dm_block_t new_size);
208 int dm_pool_resize_metadata_dev(struct dm_pool_metadata *pmd, dm_block_t new_size);

12345