/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 356 size_t new_size; in xfs_iroot_realloc() local 374 new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, rec_diff); in xfs_iroot_realloc() 375 ifp->if_broot = kmem_alloc(new_size, KM_NOFS); in xfs_iroot_realloc() 376 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc() 388 new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, new_max); in xfs_iroot_realloc() 389 ifp->if_broot = krealloc(ifp->if_broot, new_size, in xfs_iroot_realloc() 394 (int)new_size); in xfs_iroot_realloc() 395 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc() 412 new_size = XFS_BMAP_BROOT_SPACE_CALC(mp, new_max); in xfs_iroot_realloc() 414 new_size = 0; in xfs_iroot_realloc() [all …]
|
/kernel/linux/linux-5.10/fs/reiserfs/ |
D | objectid.c | 183 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()
|
/kernel/linux/linux-5.10/drivers/staging/most/dim2/ |
D | dim2.c | 455 u16 new_size; in configure_channel() local 474 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel() 475 if (new_size == 0) { in configure_channel() 479 ccfg->buffer_size = new_size; in configure_channel() 480 if (new_size != buf_size) in configure_channel() 482 hdm_ch->name, buf_size, new_size); in configure_channel() 485 is_tx ? new_size * 2 : new_size); in configure_channel() 488 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel() 489 if (new_size == 0) { in configure_channel() 493 ccfg->buffer_size = new_size; in configure_channel() [all …]
|
/kernel/linux/linux-5.10/scripts/kconfig/ |
D | lexer.l | 65 int new_size = text_size + size + 1; in append_string() local 66 if (new_size > text_asize) { in append_string() 67 new_size += START_STRSIZE - 1; in append_string() 68 new_size &= -START_STRSIZE; in append_string() 69 text = xrealloc(text, new_size); in append_string() 70 text_asize = new_size; in append_string()
|
/kernel/linux/linux-5.10/mm/ |
D | list_lru.c | 392 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() 400 new = kvmalloc(sizeof(*new) + new_size * sizeof(void *), GFP_KERNEL); in memcg_update_list_lru_node() 404 if (__memcg_init_list_lru_node(new, old_size, new_size)) { in memcg_update_list_lru_node() 427 int old_size, int new_size) in memcg_cancel_update_list_lru_node() argument 435 __memcg_destroy_list_lru_node(memcg_lrus, old_size, new_size); in memcg_cancel_update_list_lru_node() 473 int old_size, int new_size) in memcg_update_list_lru() argument 482 old_size, new_size)) in memcg_update_list_lru() 492 old_size, new_size); in memcg_update_list_lru() 498 int old_size, int new_size) in memcg_cancel_update_list_lru() argument [all …]
|
/kernel/linux/linux-5.10/arch/sparc/mm/ |
D | tsb.c | 370 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 …]
|
/kernel/linux/linux-5.10/tools/bootconfig/ |
D | test-bootconfig.sh | 57 new_size=$(stat -c %s $INITRD) 66 xpass test $new_size -eq $total_size 72 xpass test $new_size -eq $(stat -c %s $INITRD) 78 new_size=$(stat -c %s $INITRD) 79 xpass test $new_size -eq $initrd_size
|
/kernel/linux/linux-5.10/fs/jfs/ |
D | xattr.c | 593 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 …]
|
D | namei.c | 471 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 …]
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_inode.h | 98 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof() argument 102 if (new_size > i_size || new_size < 0) in xfs_new_eof() 103 new_size = i_size; in xfs_new_eof() 104 return new_size > ip->i_d.di_size ? new_size : 0; in xfs_new_eof() 419 xfs_fsize_t new_size) in xfs_itruncate_extents() argument 421 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
|
/kernel/linux/linux-5.10/drivers/hid/ |
D | hid-gembird.c | 67 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()
|
/kernel/linux/linux-5.10/arch/s390/appldata/ |
D | appldata_os.c | 96 unsigned int new_size; in appldata_get_os_data() local 132 new_size = struct_size(os_data, os_cpu, os_data->nr_cpus); in appldata_get_os_data() 133 if (ops.size != new_size) { in appldata_get_os_data() 137 (unsigned long) ops.data, new_size, in appldata_get_os_data() 151 ops.size = new_size; in appldata_get_os_data()
|
/kernel/linux/linux-5.10/fs/ubifs/ |
D | replay.c | 58 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() 286 r->new_size); in apply_replay_entry() 386 loff_t old_size, loff_t new_size) in insert_node() argument 409 r->new_size = new_size; in insert_node() 741 loff_t new_size = le64_to_cpu(ino->size); in replay_bud() local 747 &used, 0, new_size); in replay_bud() 753 loff_t new_size = le32_to_cpu(dn->size) + in replay_bud() local 759 &used, 0, new_size); in replay_bud() [all …]
|
D | file.c | 1113 loff_t old_size = inode->i_size, new_size = attr->ia_size; in do_truncation() local 1114 int offset = new_size & (UBIFS_BLOCK_SIZE - 1), budgeted = 1; in do_truncation() 1117 dbg_gen("ino %lu, size %lld -> %lld", inode->i_ino, old_size, new_size); in do_truncation() 1125 if (new_size & (UBIFS_BLOCK_SIZE - 1)) in do_truncation() 1137 if (new_size || err != -ENOSPC) in do_truncation() 1142 truncate_setsize(inode, new_size); in do_truncation() 1145 pgoff_t index = new_size >> PAGE_SHIFT; in do_truncation() 1163 offset = new_size & in do_truncation() 1191 err = ubifs_jnl_truncate(c, inode, old_size, new_size); in do_truncation() 1218 loff_t new_size = attr->ia_size; in do_setattr() local [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cotable.c | 383 static int vmw_cotable_resize(struct vmw_resource *res, size_t new_size) in vmw_cotable_resize() argument 413 ret = vmw_bo_init(dev_priv, buf, new_size, &vmw_mob_ne_placement, in vmw_cotable_resize() 462 res->backup_size = new_size; in vmw_cotable_resize() 510 size_t new_size = res->backup_size; in vmw_cotable_create() local 516 while (needed_size > new_size) in vmw_cotable_create() 517 new_size *= 2; in vmw_cotable_create() 519 if (likely(new_size <= res->backup_size)) { in vmw_cotable_create() 529 return vmw_cotable_resize(res, new_size); in vmw_cotable_create()
|
/kernel/linux/linux-5.10/drivers/staging/comedi/ |
D | comedi_buf.c | 258 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()
|
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/ |
D | vlun.c | 505 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 …]
|
/kernel/linux/linux-5.10/fs/ntfs/ |
D | attrib.c | 1445 int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size) in ntfs_attr_record_resize() argument 1447 ntfs_debug("Entering for new_size %u.", new_size); in ntfs_attr_record_resize() 1449 if (new_size & 7) in ntfs_attr_record_resize() 1450 new_size = (new_size + 7) & ~7; in ntfs_attr_record_resize() 1452 if (new_size != le32_to_cpu(a->length)) { in ntfs_attr_record_resize() 1454 le32_to_cpu(a->length) + new_size; in ntfs_attr_record_resize() 1459 memmove((u8*)a + new_size, (u8*)a + le32_to_cpu(a->length), in ntfs_attr_record_resize() 1465 if (new_size >= offsetof(ATTR_REC, length) + sizeof(a->length)) in ntfs_attr_record_resize() 1466 a->length = cpu_to_le32(new_size); in ntfs_attr_record_resize() 1490 const u32 new_size) in ntfs_resident_attr_value_resize() argument [all …]
|
D | runlist.c | 61 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 …]
|
D | attrib.h | 88 extern int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size); 90 const u32 new_size);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/lima/ |
D | lima_gem.c | 26 size_t new_size = bo->heap_size ? bo->heap_size * 2 : in lima_heap_alloc() local 34 new_size = min(new_size, bo->base.base.size); in lima_heap_alloc() 54 for (i = old_size >> PAGE_SHIFT; i < new_size >> PAGE_SHIFT; i++) { in lima_heap_alloc() 67 new_size, GFP_KERNEL); in lima_heap_alloc() 98 bo->heap_size = new_size; in lima_heap_alloc()
|
/kernel/linux/linux-5.10/fs/exfat/ |
D | file.c | 95 int __exfat_truncate(struct inode *inode, loff_t new_size) in __exfat_truncate() argument 116 if (new_size > 0) { in __exfat_truncate() 146 i_size_write(inode, new_size); in __exfat_truncate() 178 ep2->dentry.stream.valid_size = cpu_to_le64(new_size); in __exfat_truncate() 182 if (new_size == 0) { in __exfat_truncate()
|
/kernel/linux/linux-5.10/fs/hmdfs/ |
D | inode_cloud.c | 120 static void hmdfs_update_inode_size(struct inode *inode, uint64_t new_size) in hmdfs_update_inode_size() argument 130 if (size == new_size) { in hmdfs_update_inode_size() 153 if (new_size <= size) in hmdfs_update_inode_size() 164 i_size_write(inode, new_size); in hmdfs_update_inode_size() 171 info->getattr_isize = new_size; in hmdfs_update_inode_size()
|
/kernel/linux/linux-5.10/kernel/kcsan/ |
D | debugfs.c | 163 size_t new_size = report_filterlist.size * 2; in insert_report_filterlist() local 166 new_size * sizeof(unsigned long), GFP_ATOMIC); in insert_report_filterlist() 174 report_filterlist.size = new_size; in insert_report_filterlist()
|
/kernel/linux/linux-5.10/arch/x86/entry/vdso/ |
D | vma.c | 92 unsigned long new_size = new_vma->vm_end - new_vma->vm_start; in vdso_mremap() local 95 if (image->size != new_size) in vdso_mremap() 108 unsigned long new_size = new_vma->vm_end - new_vma->vm_start; in vvar_mremap() local 110 if (new_size != -image->sym_vvar_start) in vvar_mremap()
|