/linux-6.12.1/fs/bcachefs/ |
D | darray.c | 8 int __bch2_darray_resize_noprof(darray_char *d, size_t element_size, size_t new_size, gfp_t gfp) in __bch2_darray_resize_noprof() argument 10 if (new_size > d->size) { in __bch2_darray_resize_noprof() 11 new_size = roundup_pow_of_two(new_size); in __bch2_darray_resize_noprof() 20 if (unlikely(check_mul_overflow(new_size, element_size, &bytes))) in __bch2_darray_resize_noprof() 34 d->size = new_size; in __bch2_darray_resize_noprof()
|
/linux-6.12.1/fs/xfs/libxfs/ |
D | xfs_inode_fork.c | 394 size_t new_size; in xfs_iroot_realloc() local 412 new_size = xfs_bmap_broot_space_calc(mp, rec_diff); in xfs_iroot_realloc() 413 ifp->if_broot = kmalloc(new_size, in xfs_iroot_realloc() 415 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc() 427 new_size = xfs_bmap_broot_space_calc(mp, new_max); in xfs_iroot_realloc() 428 ifp->if_broot = krealloc(ifp->if_broot, new_size, in xfs_iroot_realloc() 433 (int)new_size); in xfs_iroot_realloc() 434 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc() 451 new_size = xfs_bmap_broot_space_calc(mp, new_max); in xfs_iroot_realloc() 453 new_size = 0; in xfs_iroot_realloc() [all …]
|
/linux-6.12.1/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()
|
/linux-6.12.1/drivers/staging/most/dim2/ |
D | dim2.c | 452 u16 new_size; in configure_channel() local 471 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel() 472 if (new_size == 0) { in configure_channel() 476 ccfg->buffer_size = new_size; in configure_channel() 477 if (new_size != buf_size) in configure_channel() 479 hdm_ch->name, buf_size, new_size); in configure_channel() 482 is_tx ? new_size * 2 : new_size); in configure_channel() 485 new_size = dim_norm_ctrl_async_buffer_size(buf_size); in configure_channel() 486 if (new_size == 0) { in configure_channel() 490 ccfg->buffer_size = new_size; in configure_channel() [all …]
|
/linux-6.12.1/scripts/kconfig/ |
D | lexer.l | 67 int new_size = text_size + size + 1; in append_string() local 68 if (new_size > text_asize) { in append_string() 69 new_size += START_STRSIZE - 1; in append_string() 70 new_size &= -START_STRSIZE; in append_string() 71 text = xrealloc(text, new_size); in append_string() 72 text_asize = new_size; in append_string()
|
/linux-6.12.1/fs/cachefiles/ |
D | interface.c | 233 struct file *file, loff_t new_size) in cachefiles_shorten_object() argument 240 dio_size = round_up(new_size, CACHEFILES_DIO_BLOCK_SIZE); in cachefiles_shorten_object() 256 if (new_size < dio_size) { in cachefiles_shorten_object() 257 trace_cachefiles_trunc(object, inode, dio_size, new_size, in cachefiles_shorten_object() 262 new_size, dio_size - new_size); in cachefiles_shorten_object() 279 loff_t new_size) in cachefiles_resize_cookie() argument 288 _enter("%llu->%llu", old_size, new_size); in cachefiles_resize_cookie() 290 if (new_size < old_size) { in cachefiles_resize_cookie() 292 cachefiles_shorten_object(object, file, new_size); in cachefiles_resize_cookie() 294 object->cookie->object_size = new_size; in cachefiles_resize_cookie() [all …]
|
/linux-6.12.1/include/trace/events/ |
D | fscache.h | 463 TP_PROTO(struct fscache_cookie *cookie, loff_t new_size), 465 TP_ARGS(cookie, new_size), 469 __field(loff_t, new_size ) 474 __entry->new_size = new_size; 478 __entry->cookie, __entry->new_size) 482 TP_PROTO(struct fscache_cookie *cookie, loff_t new_size), 484 TP_ARGS(cookie, new_size), 489 __field(loff_t, new_size ) 495 __entry->new_size = new_size; 501 __entry->new_size)
|
/linux-6.12.1/kernel/module/ |
D | decompress.c | 89 size_t new_size = 0; in module_gzip_decompress() local 127 new_size += PAGE_SIZE - s.avail_out; in module_gzip_decompress() 136 retval = new_size; in module_gzip_decompress() 156 size_t new_size = 0; in module_xz_decompress() local 187 new_size += xz_buf.out_pos; in module_xz_decompress() 196 retval = new_size; in module_xz_decompress() 218 size_t new_size = 0; in module_zstd_decompress() local 275 new_size += zstd_dec.pos; in module_zstd_decompress() 284 retval = new_size; in module_zstd_decompress()
|
/linux-6.12.1/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 …]
|
/linux-6.12.1/kernel/ |
D | crash_core.c | 337 unsigned long new_size) in __crash_shrink_memory() argument 345 ram_res->start = old_res->start + new_size; in __crash_shrink_memory() 350 if (!new_size) { in __crash_shrink_memory() 364 int crash_shrink_memory(unsigned long new_size) in crash_shrink_memory() argument 379 new_size = roundup(new_size, KEXEC_CRASH_MEM_ALIGN); 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() 393 if (low_size > new_size) { in crash_shrink_memory() 398 ret = __crash_shrink_memory(&crashk_low_res, new_size); in crash_shrink_memory() 400 ret = __crash_shrink_memory(&crashk_res, new_size - low_size); in crash_shrink_memory()
|
/linux-6.12.1/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
|
/linux-6.12.1/fs/jfs/ |
D | xattr.c | 597 int new_size) in ea_put() argument 603 if (new_size == 0) { in ea_put() 607 assert(new_size <= sizeof (ji->i_inline_ea)); in ea_put() 610 DXDsize(&ea_buf->new_ea, new_size); in ea_put() 614 rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea); in ea_put() 621 rc = ea_write(inode, ea_buf->xattr, new_size, &ea_buf->new_ea); in ea_put() 667 int new_size; in __jfs_setxattr() local 683 new_size = sizeof (struct jfs_ea_list); in __jfs_setxattr() 699 new_size += EA_SIZE(ea); in __jfs_setxattr() 714 new_size += sizeof (struct jfs_ea) + namelen + 1 + value_len; in __jfs_setxattr() [all …]
|
D | namei.c | 472 s64 new_size = 0; in jfs_unlink() local 528 if ((new_size = commitZeroLink(tid, ip)) < 0) { in jfs_unlink() 534 rc = new_size; in jfs_unlink() 547 if (new_size) in jfs_unlink() 563 while (new_size && (rc == 0)) { in jfs_unlink() 566 new_size = xtTruncate_pmap(tid, ip, new_size); in jfs_unlink() 567 if (new_size < 0) { in jfs_unlink() 569 rc = new_size; in jfs_unlink() 1086 s64 new_size = 0; in jfs_rename() local 1200 if ((new_size = commitZeroLink(tid, new_ip)) < 0) { in jfs_rename() [all …]
|
/linux-6.12.1/drivers/gpu/drm/i915/ |
D | i915_deps.c | 81 unsigned int new_size = 2 * deps->fences_size; in i915_deps_grow() local 84 new_size = max(new_size, I915_DEPS_MIN_ALLOC_CHUNK); in i915_deps_grow() 85 new_fences = kmalloc_array(new_size, sizeof(*new_fences), deps->gfp); in i915_deps_grow() 94 deps->fences_size = new_size; in i915_deps_grow()
|
/linux-6.12.1/fs/btrfs/ |
D | inode-item.c | 468 u64 new_size = control->new_size; in btrfs_truncate_inode_items() local 482 ASSERT(new_size == 0 || control->min_type == BTRFS_EXTENT_DATA_KEY); in btrfs_truncate_inode_items() 484 control->last_size = new_size; in btrfs_truncate_inode_items() 561 if (item_end < new_size) in btrfs_truncate_inode_items() 563 if (found_key.offset >= new_size) in btrfs_truncate_inode_items() 583 extent_num_bytes = ALIGN(new_size - in btrfs_truncate_inode_items() 586 clear_start = ALIGN(new_size, fs_info->sectorsize); in btrfs_truncate_inode_items() 615 u32 size = (u32)(new_size - found_key.offset); in btrfs_truncate_inode_items() 636 control->sub_bytes += item_end + 1 - new_size; in btrfs_truncate_inode_items() 668 control->last_size = new_size; in btrfs_truncate_inode_items() [all …]
|
/linux-6.12.1/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()
|
/linux-6.12.1/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()
|
/linux-6.12.1/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() 387 loff_t old_size, loff_t new_size) in insert_node() argument 410 r->new_size = new_size; in insert_node() 743 loff_t new_size = le64_to_cpu(ino->size); in replay_bud() local 749 &used, 0, new_size); in replay_bud() 755 loff_t new_size = le32_to_cpu(dn->size) + in replay_bud() local 761 &used, 0, new_size); in replay_bud() [all …]
|
/linux-6.12.1/drivers/platform/x86/dell/dell-wmi-sysman/ |
D | passwordattr-interface.c | 43 size_t password_type_size, current_password_size, new_size; in set_new_password() local 69 new_size = calculate_string_buffer(new); in set_new_password() 70 buffer_size = security_area_size + password_type_size + current_password_size + new_size; in set_new_password() 92 ret = populate_string_buffer(start, new_size, new); in set_new_password()
|
/linux-6.12.1/fs/xfs/ |
D | xfs_inode.h | 198 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof() argument 202 if (new_size > i_size || new_size < 0) in xfs_new_eof() 203 new_size = i_size; in xfs_new_eof() 204 return new_size > ip->i_disk_size ? new_size : 0; in xfs_new_eof() 567 xfs_fsize_t new_size) in xfs_itruncate_extents() argument 569 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
|
D | xfs_file.c | 891 loff_t *new_size) in xfs_falloc_newsize() argument 897 *new_size = offset + len; in xfs_falloc_newsize() 898 return inode_newsize_ok(inode, *new_size); in xfs_falloc_newsize() 904 loff_t new_size) in xfs_falloc_setsize() argument 908 .ia_size = new_size, in xfs_falloc_setsize() 911 if (!new_size) in xfs_falloc_setsize() 924 loff_t new_size = i_size_read(inode) - len; in xfs_falloc_collapse_range() local 940 return xfs_falloc_setsize(file, new_size); in xfs_falloc_collapse_range() 997 loff_t new_size = 0; in xfs_falloc_zero_range() local 1002 error = xfs_falloc_newsize(file, mode, offset, len, &new_size); in xfs_falloc_zero_range() [all …]
|
/linux-6.12.1/rust/helpers/ |
D | slab.c | 6 rust_helper_krealloc(const void *objp, size_t new_size, gfp_t flags) in rust_helper_krealloc() argument 8 return krealloc(objp, new_size, flags); in rust_helper_krealloc()
|
/linux-6.12.1/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cotable.c | 399 static int vmw_cotable_resize(struct vmw_resource *res, size_t new_size) in vmw_cotable_resize() argument 416 .size = new_size, in vmw_cotable_resize() 486 res->guest_memory_size = new_size; in vmw_cotable_resize() 547 size_t new_size = res->guest_memory_size; in vmw_cotable_create() local 553 while (needed_size > new_size) in vmw_cotable_create() 554 new_size *= 2; in vmw_cotable_create() 556 if (likely(new_size <= res->guest_memory_size)) { in vmw_cotable_create() 566 return vmw_cotable_resize(res, new_size); in vmw_cotable_create()
|
/linux-6.12.1/fs/ntfs3/ |
D | attrlist.c | 296 u64 new_size; in al_add_le() local 304 new_size = old_size + sz; in al_add_le() 306 new_asize = al_aligned(new_size); in al_add_le() 312 if (new_size > asize) { in al_add_le() 328 al->size = new_size; in al_add_le() 339 err = attr_set_size(ni, ATTR_LIST, NULL, 0, &al->run, new_size, in al_add_le() 340 &new_size, true, &attr); in al_add_le()
|
D | file.c | 477 static int ntfs_truncate(struct inode *inode, loff_t new_size) in ntfs_truncate() argument 488 if (ni->i_valid > new_size) in ntfs_truncate() 489 ni->i_valid = new_size; in ntfs_truncate() 491 err = block_truncate_page(inode->i_mapping, new_size, in ntfs_truncate() 497 new_valid = ntfs_up_block(sb, min_t(u64, ni->i_valid, new_size)); in ntfs_truncate() 499 truncate_setsize(inode, new_size); in ntfs_truncate() 504 err = attr_set_size(ni, ATTR_DATA, NULL, 0, &ni->file.run, new_size, in ntfs_truncate() 551 loff_t i_size, new_size; in ntfs_fallocate() local 582 new_size = max(end, i_size); in ntfs_fallocate() 671 err = inode_newsize_ok(inode, new_size); in ntfs_fallocate() [all …]
|