Home
last modified time | relevance | path

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

1234567

/linux/fs/bcachefs/
H A Ddarray.c8 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/fs/xfs/libxfs/
H A Dxfs_inode_fork.c375 * Allocate the if_broot component of an inode fork so that it is @new_size
382 size_t new_size) in xfs_broot_alloc() argument
386 ifp->if_broot = kmalloc(new_size, in xfs_broot_alloc()
388 ifp->if_broot_bytes = new_size; in xfs_broot_alloc()
393 * Reallocate the if_broot component of an inode fork so that it is @new_size
399 size_t new_size) in xfs_broot_realloc() argument
402 if (new_size == ifp->if_broot_bytes) in xfs_broot_realloc()
406 if (new_size == 0) { in xfs_broot_realloc()
417 if (ifp->if_broot_bytes > 0 && ifp->if_broot_bytes > new_size) { in xfs_broot_realloc()
420 ifp->if_broot = kmalloc(new_size, GFP_KERNE in xfs_broot_realloc()
459 int64_t new_size = ifp->if_bytes + byte_diff; xfs_idata_realloc() local
[all...]
H A Dxfs_rtrefcount_btree.c291 size_t new_size, in xfs_rtrefcountbt_move_ptrs() argument
298 dptr = xfs_rtrefcount_broot_ptr_addr(mp, broot, 1, new_size); in xfs_rtrefcountbt_move_ptrs()
310 unsigned int new_size; in xfs_rtrefcountbt_broot_realloc() local
314 new_size = xfs_rtrefcount_broot_space_calc(mp, level, new_numrecs); in xfs_rtrefcountbt_broot_realloc()
317 if (new_size == old_size) in xfs_rtrefcountbt_broot_realloc()
320 if (new_size > old_size) { in xfs_rtrefcountbt_broot_realloc()
328 return xfs_broot_realloc(ifp, new_size); in xfs_rtrefcountbt_broot_realloc()
336 broot = xfs_broot_realloc(ifp, new_size); in xfs_rtrefcountbt_broot_realloc()
339 new_size, old_numrecs); in xfs_rtrefcountbt_broot_realloc()
348 if (new_size in xfs_rtrefcountbt_broot_realloc()
[all...]
H A Dxfs_bmap_btree.c512 size_t new_size, in xfs_bmbt_move_ptrs() argument
519 dptr = xfs_bmap_broot_ptr_addr(mp, broot, 1, new_size); in xfs_bmbt_move_ptrs()
549 unsigned int new_size; in xfs_bmap_broot_realloc() local
560 new_size = xfs_bmap_broot_space_calc(mp, new_numrecs); in xfs_bmap_broot_realloc()
563 if (new_size == old_size) in xfs_bmap_broot_realloc()
566 if (new_size > old_size) { in xfs_bmap_broot_realloc()
574 return xfs_broot_realloc(ifp, new_size); in xfs_bmap_broot_realloc()
583 broot = xfs_broot_realloc(ifp, new_size); 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 > in xfs_bmap_broot_realloc()
[all...]
H A Dxfs_rtrmap_btree.c392 size_t new_size, in xfs_rtrmapbt_move_ptrs() argument
399 dptr = xfs_rtrmap_broot_ptr_addr(mp, broot, 1, new_size); in xfs_rtrmapbt_move_ptrs()
411 unsigned int new_size; in xfs_rtrmapbt_broot_realloc() local
415 new_size = xfs_rtrmap_broot_space_calc(mp, level, new_numrecs); in xfs_rtrmapbt_broot_realloc()
418 if (new_size == old_size) in xfs_rtrmapbt_broot_realloc()
421 if (new_size > old_size) { in xfs_rtrmapbt_broot_realloc()
429 return xfs_broot_realloc(ifp, new_size); in xfs_rtrmapbt_broot_realloc()
437 broot = xfs_broot_realloc(ifp, new_size); in xfs_rtrmapbt_broot_realloc()
439 xfs_rtrmapbt_move_ptrs(mp, broot, old_size, new_size, in xfs_rtrmapbt_broot_realloc()
449 if (new_size in xfs_rtrmapbt_broot_realloc()
[all...]
/linux/drivers/staging/most/dim2/
H A Ddim2.c452 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 in configure_channel()
[all...]
/linux/fs/cachefiles/
H A Dinterface.c233 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()
[all...]
/linux/include/trace/events/
H A Dfscache.h463 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
[all...]
/linux/kernel/module/
H A Ddecompress.c89 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/arch/sparc/mm/
H A 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 in tsb_grow()
[all...]
/linux/tools/include/nolibc/sys/
H A Dmman.h52 void *sys_mremap(void *old_address, size_t old_size, size_t new_size, int flags, void *new_address) in sys_mremap() argument
55 new_size, flags, new_address); in sys_mremap()
59 void *mremap(void *old_address, size_t old_size, size_t new_size, int flags, void *new_address) in mremap() argument
61 void *ret = sys_mremap(old_address, old_size, new_size, flags, new_address); in mremap()
/linux/kernel/
H A Dcrash_core.c352 unsigned long new_size) in __crash_shrink_memory() argument
360 ram_res->start = old_res->start + new_size; in __crash_shrink_memory()
365 if (!new_size) { in __crash_shrink_memory()
379 int crash_shrink_memory(unsigned long new_size) in crash_shrink_memory() argument
394 new_size = roundup(new_size, KEXEC_CRASH_MEM_ALIGN); in crash_shrink_memory()
395 if (new_size >= old_size) { in crash_shrink_memory()
396 ret = (new_size == old_size) ? 0 : -EINVAL; in crash_shrink_memory()
401 * (low_size > new_size) implies that low_size is greater than zero. in crash_shrink_memory()
404 * If low_size is greater than 0, (low_size > new_size) indicate in crash_shrink_memory()
[all...]
/linux/drivers/gpu/drm/i915/
H A Di915_deps.c81 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/tools/bootconfig/
H A Dtest-bootconfig.sh57 new_size=$(wc -c < $INITRD)
66 xpass test $new_size -eq $total_size
72 xpass test $new_size -eq $(wc -c < $INITRD)
78 new_size=$(wc -c < $INITRD)
79 xpass test $new_size -eq $initrd_size
/linux/drivers/hid/
H A 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/arch/s390/appldata/
H A Dappldata_os.c96 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/kernel/kcsan/
H A Ddebugfs.c144 size_t new_size = 0; in insert_report_filterlist() local
158 new_size = (report_filterlist.size ?: 4) * 2; in insert_report_filterlist()
159 delay_free = new_addrs = kmalloc_array(new_size, sizeof(unsigned long), GFP_KERNEL); in insert_report_filterlist()
167 if (report_filterlist.used >= new_size) { in insert_report_filterlist()
178 report_filterlist.size = new_size; in insert_report_filterlist()
/linux/drivers/platform/x86/dell/dell-wmi-sysman/
H A Dpasswordattr-interface.c43 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/fs/xfs/
H A Dxfs_inode.h204 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof() argument
208 if (new_size > i_size || new_size < 0) in xfs_new_eof()
209 new_size = i_size; in xfs_new_eof()
210 return new_size > ip->i_disk_size ? new_size : 0; in xfs_new_eof()
602 xfs_fsize_t new_size) in xfs_itruncate_extents() argument
604 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
/linux/rust/helpers/
H A Dslab.c6 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/fs/ntfs3/
H A Dattrlist.c296 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()
H A Dfile.c429 static int ntfs_truncate(struct inode *inode, loff_t new_size) in ntfs_truncate() argument
440 if (ni->i_valid > new_size) in ntfs_truncate()
441 ni->i_valid = new_size; in ntfs_truncate()
443 err = block_truncate_page(inode->i_mapping, new_size, in ntfs_truncate()
449 new_valid = ntfs_up_block(sb, min_t(u64, ni->i_valid, new_size)); in ntfs_truncate()
451 truncate_setsize(inode, new_size); in ntfs_truncate()
456 err = attr_set_size(ni, ATTR_DATA, NULL, 0, &ni->file.run, new_size, in ntfs_truncate()
503 loff_t i_size, new_size; in ntfs_fallocate() local
534 new_size = max(end, i_size); in ntfs_fallocate()
623 err = inode_newsize_ok(inode, new_size); in ntfs_fallocate()
[all...]
/linux/fs/jfs/
H A Dnamei.c472 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 in jfs_rename() local
[all...]
/linux/tools/testing/selftests/ublk/
H A Dtest_generic_10.sh24 new_size=$(_get_disk_size /dev/ublkb"${dev_id}")
25 if [ "$new_size" != "$size" ]; then
/linux/drivers/gpu/drm/lima/
H A Dlima_gem.c27 size_t new_size = bo->heap_size ? bo->heap_size * 2 : in lima_heap_alloc() local
35 new_size = min(new_size, bo->base.base.size); in lima_heap_alloc()
55 for (i = old_size >> PAGE_SHIFT; i < new_size >> PAGE_SHIFT; i++) { in lima_heap_alloc()
68 new_size, GFP_KERNEL); in lima_heap_alloc()
95 bo->heap_size = new_size; in lima_heap_alloc()

1234567