/linux/fs/xfs/libxfs/ |
A D | xfs_inode_fork.c | 363 size_t new_size; in xfs_iroot_realloc() local 383 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc() 401 (int)new_size); in xfs_iroot_realloc() 402 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc() 421 new_size = 0; in xfs_iroot_realloc() 422 if (new_size > 0) { in xfs_iroot_realloc() 450 (int)new_size); in xfs_iroot_realloc() 455 ifp->if_broot_bytes = (int)new_size; in xfs_iroot_realloc() 487 ASSERT(new_size >= 0); in xfs_idata_realloc() 493 if (new_size == 0) { in xfs_idata_realloc() [all …]
|
/linux/drivers/staging/most/dim2/ |
A D | dim2.c | 458 u16 new_size; in configure_channel() local 478 if (new_size == 0) { in configure_channel() 483 if (new_size != buf_size) in configure_channel() 488 is_tx ? new_size * 2 : new_size); in configure_channel() 492 if (new_size == 0) { in configure_channel() 497 if (new_size != buf_size) in configure_channel() 502 is_tx ? new_size * 2 : new_size); in configure_channel() 506 if (new_size == 0) { in configure_channel() 512 if (new_size != buf_size) in configure_channel() 520 if (new_size == 0) { in configure_channel() [all …]
|
/linux/fs/reiserfs/ |
A 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/scripts/kconfig/ |
A D | lexer.l | 57 int new_size = text_size + size + 1; in append_string() local 58 if (new_size > text_asize) { in append_string() 59 new_size += START_STRSIZE - 1; in append_string() 60 new_size &= -START_STRSIZE; in append_string() 61 text = xrealloc(text, new_size); in append_string() 62 text_asize = new_size; in append_string()
|
A D | lexer.lex.c | 2276 int new_size = text_size + size + 1; in append_string() local 2277 if (new_size > text_asize) { in append_string() 2278 new_size += START_STRSIZE - 1; in append_string() 2279 new_size &= -START_STRSIZE; in append_string() 2280 text = xrealloc(text, new_size); in append_string() 2281 text_asize = new_size; in append_string() 3113 int new_size = b->yy_buf_size * 2; in yy_get_next_buffer() local 3115 if ( new_size <= 0 ) in yy_get_next_buffer() 3171 int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); in yy_get_next_buffer() local 3173 (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size ); in yy_get_next_buffer() [all …]
|
/linux/mm/ |
A 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() 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() 493 int memcg_update_all_list_lrus(int new_size) in memcg_update_all_list_lrus() argument 501 ret = memcg_update_list_lru(lru, old_size, new_size); in memcg_update_all_list_lrus() [all …]
|
/linux/arch/sparc/mm/ |
A 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/fs/jfs/ |
A D | xattr.c | 593 int new_size) in ea_put() argument 599 if (new_size == 0) { in ea_put() 606 DXDsize(&ea_buf->new_ea, new_size); 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() 712 if (new_size > ea_buf.max_size) { in __jfs_setxattr() 766 if (xattr_size != new_size) { in __jfs_setxattr() 769 xattr_size, new_size); in __jfs_setxattr() 779 new_size = 0; in __jfs_setxattr() [all …]
|
A D | namei.c | 472 s64 new_size = 0; in jfs_unlink() local 533 rc = new_size; in jfs_unlink() 546 if (new_size) in jfs_unlink() 565 new_size = xtTruncate_pmap(tid, ip, new_size); in jfs_unlink() 566 if (new_size < 0) { in jfs_unlink() 568 rc = new_size; in jfs_unlink() 1080 s64 new_size = 0; in jfs_rename() local 1196 rc = new_size; in jfs_rename() 1290 if (new_size) in jfs_rename() 1309 new_size = xtTruncate_pmap(tid, new_ip, new_size); in jfs_rename() [all …]
|
/linux/tools/bootconfig/ |
A 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/fs/xfs/ |
A D | xfs_inode.h | 109 xfs_new_eof(struct xfs_inode *ip, xfs_fsize_t new_size) in xfs_new_eof() argument 113 if (new_size > i_size || new_size < 0) in xfs_new_eof() 114 new_size = i_size; in xfs_new_eof() 115 return new_size > ip->i_disk_size ? new_size : 0; in xfs_new_eof() 459 xfs_fsize_t new_size) in xfs_itruncate_extents() argument 461 return xfs_itruncate_extents_flags(tpp, ip, whichfork, new_size, 0); in xfs_itruncate_extents()
|
/linux/arch/s390/appldata/ |
A 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/fs/ubifs/ |
A 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() 409 r->new_size = new_size; in insert_node() 747 &used, 0, new_size); in replay_bud() 759 &used, 0, new_size); in replay_bud() 781 loff_t new_size = le64_to_cpu(trun->new_size); in replay_bud() local 786 new_size < 0 || new_size > c->max_inode_sz || in replay_bud() 787 old_size <= new_size) { in replay_bud() [all …]
|
A 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() 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 1228 dbg_gen("size %lld -> %lld", inode->i_size, new_size); in do_setattr() [all …]
|
/linux/drivers/hid/ |
A 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/drivers/platform/x86/dell/dell-wmi-sysman/ |
A 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/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_cotable.c | 384 static int vmw_cotable_resize(struct vmw_resource *res, size_t new_size) in vmw_cotable_resize() argument 414 ret = vmw_bo_init(dev_priv, buf, new_size, &vmw_mob_placement, in vmw_cotable_resize() 463 res->backup_size = new_size; in vmw_cotable_resize() 515 size_t new_size = res->backup_size; in vmw_cotable_create() local 521 while (needed_size > new_size) in vmw_cotable_create() 522 new_size *= 2; in vmw_cotable_create() 524 if (likely(new_size <= res->backup_size)) { in vmw_cotable_create() 534 return vmw_cotable_resize(res, new_size); in vmw_cotable_create()
|
/linux/fs/ntfs3/ |
A D | attrlist.c | 280 u64 new_size; in al_add_le() local 288 new_size = old_size + sz; in al_add_le() 290 new_asize = al_aligned(new_size); in al_add_le() 296 if (new_size > asize) { in al_add_le() 312 al->size = new_size; in al_add_le() 323 err = attr_set_size(ni, ATTR_LIST, NULL, 0, &al->run, new_size, in al_add_le() 324 &new_size, true, &attr); in al_add_le()
|
A D | attrib.c | 235 u64 new_size, struct runs_tree *run, in attr_make_nonresident() argument 360 u64 new_size, struct runs_tree *run, in attr_set_size_res() argument 384 if (new_size > rsize) in attr_set_size_res() 386 new_size - rsize); in attr_set_size_res() 500 if (new_size > old_size) { in attr_set_size() 524 sbi, get_pre_allocated(new_size)); in attr_set_size() 599 new_size = new_alloc_tmp; in attr_set_size() 669 if (new_size != old_size || in attr_set_size() 713 if (new_size < old_valid) in attr_set_size() 784 if (ni->vfs_inode.i_size != new_size) { in attr_set_size() [all …]
|
/linux/fs/ntfs/ |
A D | attrib.c | 1425 if (new_size & 7) in ntfs_attr_record_resize() 1426 new_size = (new_size + 7) & ~7; in ntfs_attr_record_resize() 1430 le32_to_cpu(a->length) + new_size; 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 1479 if (new_size > old_size) in ntfs_resident_attr_value_resize() 1481 old_size, 0, new_size - old_size); in ntfs_resident_attr_value_resize() 1523 s64 new_size; in ntfs_attr_make_non_resident() local 1561 if (new_size > 0) { in ntfs_attr_make_non_resident() 1576 "%i.", (new_size >> in ntfs_attr_make_non_resident() [all …]
|
A 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() 120 if (unlikely(old_size > new_size)) in ntfs_rl_realloc_nofail() [all …]
|
/linux/drivers/scsi/cxlflash/ |
A 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 …]
|
/linux/drivers/comedi/ |
A 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()
|
/linux/drivers/gpu/drm/lima/ |
A 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()
|
/linux/fs/exfat/ |
A D | file.c | 96 int __exfat_truncate(struct inode *inode, loff_t new_size) in __exfat_truncate() argument 118 if (new_size > 0) { in __exfat_truncate() 148 i_size_write(inode, new_size); in __exfat_truncate() 180 ep2->dentry.stream.valid_size = cpu_to_le64(new_size); in __exfat_truncate() 184 if (new_size == 0) { in __exfat_truncate()
|