/openbmc/linux/sound/hda/ |
H A D | array.c | 25 int oldsize = array->alloced * array->elem_size; in snd_array_new() local 33 memset(nlist + oldsize, 0, size - oldsize); in snd_array_new()
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_dir2_sf.c | 947 int oldsize; /* old inode size */ in xfs_dir2_sf_removename() local 954 oldsize = (int)dp->i_disk_size; in xfs_dir2_sf_removename() 955 ASSERT(oldsize >= offsetof(struct xfs_dir2_sf_hdr, parent)); in xfs_dir2_sf_removename() 956 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename() 959 ASSERT(oldsize >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_removename() 983 newsize = oldsize - entsize; in xfs_dir2_sf_removename() 987 if (byteoff + entsize < oldsize) in xfs_dir2_sf_removename() 989 oldsize - (byteoff + entsize)); in xfs_dir2_sf_removename() 998 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename() 1165 int oldsize; /* old inode size */ in xfs_dir2_sf_toino4() local [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_vhyp_mmu.c | 433 void *old_hpt, uint64_t oldsize, in rehash_hpte() argument 437 uint64_t old_hash_mask = (oldsize >> 7) - 1; in rehash_hpte() 495 assert((oldsize != newsize) || (pteg == new_pteg)); in rehash_hpte() 504 assert(newsize < oldsize); in rehash_hpte() 521 void *old_hpt, uint64_t oldsize, in rehash_hpt() argument 524 uint64_t n_ptegs = oldsize >> 7; in rehash_hpt() 539 rc = rehash_hpte(cpu, hptes, old_hpt, oldsize, new_hpt, newsize, in rehash_hpt()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_iops.c | 794 xfs_off_t oldsize, newsize; in xfs_setattr_size() local 806 oldsize = inode->i_size; in xfs_setattr_size() 812 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size() 845 if (newsize > oldsize) { in xfs_setattr_size() 846 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size() 847 error = xfs_zero_range(ip, oldsize, newsize - oldsize, in xfs_setattr_size() 898 (newsize > ip->i_disk_size && oldsize != ip->i_disk_size)) { in xfs_setattr_size() 923 if (newsize != oldsize && in xfs_setattr_size() 945 if (newsize <= oldsize) { in xfs_setattr_size()
|
/openbmc/u-boot/common/ |
H A D | dlmalloc.c | 1655 INTERNAL_SIZE_T oldsize; /* its size */ local 1693 newsize = oldsize = chunksize(oldp); 1706 if(oldsize - SIZE_SZ >= nb) return oldmem; /* do nothing */ 1711 MALLOC_COPY(newmem, oldmem, oldsize - 2*SIZE_SZ); 1719 if ((long)(oldsize) < (long)(nb)) 1724 next = chunk_at_offset(oldp, oldsize); 1776 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 1792 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 1804 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 1827 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
|
H A D | dlmalloc.src | 2503 INTERNAL_SIZE_T oldsize; /* its size */ 2531 newsize = oldsize = chunksize(oldp); 2544 if(oldsize - SIZE_SZ >= nb) return oldmem; /* do nothing */ 2548 MALLOC_COPY(newmem, oldmem, oldsize - 2*SIZE_SZ); 2556 if ((long)(oldsize) < (long)(nb)) 2561 next = chunk_at_offset(oldp, oldsize); 2613 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 2629 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 2641 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ); 2664 MALLOC_COPY(newmem, oldmem, oldsize - SIZE_SZ);
|
/openbmc/linux/drivers/md/bcache/ |
H A D | bset.c | 133 size_t oldsize = bch_keylist_nkeys(l); in __bch_keylist_realloc() local 134 size_t newsize = oldsize + u64s; in __bch_keylist_realloc() 141 roundup_pow_of_two(oldsize) == newsize) in __bch_keylist_realloc() 150 memcpy(new_keys, l->inline_keys, sizeof(uint64_t) * oldsize); in __bch_keylist_realloc() 153 l->top_p = new_keys + oldsize; in __bch_keylist_realloc() 1297 int oldsize = bch_count_data(b); in bch_btree_sort_partial() local 1312 EBUG_ON(oldsize >= 0 && bch_count_data(b) != oldsize); in bch_btree_sort_partial()
|
H A D | request.c | 93 size_t oldsize = bch_keylist_nkeys(l); in bch_keylist_realloc() local 94 size_t newsize = oldsize + u64s; in bch_keylist_realloc()
|
/openbmc/linux/drivers/md/ |
H A D | md-cluster.h | 30 int (*resize_bitmaps)(struct mddev *mddev, sector_t newsize, sector_t oldsize);
|
H A D | raid10.c | 4338 sector_t oldsize, size; in raid10_resize() local 4346 oldsize = raid10_size(mddev, 0, 0); in raid10_resize() 4358 mddev->recovery_cp > oldsize) { in raid10_resize() 4359 mddev->recovery_cp = oldsize; in raid10_resize() 4617 sector_t oldsize, newsize; in raid10_start_reshape() local 4619 oldsize = raid10_size(mddev, 0, 0); in raid10_start_reshape() 4642 MD_FEATURE_RESHAPE_ACTIVE)) || (oldsize == newsize)) in raid10_start_reshape() 4649 ret = md_cluster_ops->resize_bitmaps(mddev, newsize, oldsize); in raid10_start_reshape() 4651 md_bitmap_resize(mddev->bitmap, oldsize, 0, 0); in raid10_start_reshape()
|
H A D | md-cluster.c | 1127 static int resize_bitmaps(struct mddev *mddev, sector_t newsize, sector_t oldsize) in resize_bitmaps() argument 1184 update_bitmap_size(mddev, oldsize); in resize_bitmaps()
|
/openbmc/linux/mm/ |
H A D | truncate.c | 761 loff_t oldsize = inode->i_size; in truncate_setsize() local 764 if (newsize > oldsize) in truncate_setsize() 765 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize()
|
H A D | util.c | 685 void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags) in kvrealloc() argument 689 if (oldsize >= newsize) in kvrealloc() 694 memcpy(newp, p, oldsize); in kvrealloc()
|
H A D | shmem.c | 177 loff_t oldsize, loff_t newsize) in shmem_reacct_size() argument 180 if (VM_ACCT(newsize) > VM_ACCT(oldsize)) in shmem_reacct_size() 182 VM_ACCT(newsize) - VM_ACCT(oldsize)); in shmem_reacct_size() 183 else if (VM_ACCT(newsize) < VM_ACCT(oldsize)) in shmem_reacct_size() 184 vm_unacct_memory(VM_ACCT(oldsize) - VM_ACCT(newsize)); in shmem_reacct_size() 1195 loff_t oldsize = inode->i_size; in shmem_setattr() local 1199 if ((newsize < oldsize && (info->seals & F_SEAL_SHRINK)) || in shmem_setattr() 1200 (newsize > oldsize && (info->seals & F_SEAL_GROW))) in shmem_setattr() 1203 if (newsize != oldsize) { in shmem_setattr() 1205 oldsize, newsize); in shmem_setattr() [all …]
|
/openbmc/linux/fs/gfs2/ |
H A D | bmap.c | 1316 static int gfs2_journaled_truncate(struct inode *inode, u64 oldsize, u64 newsize) in gfs2_journaled_truncate() argument 1323 while (oldsize != newsize) { in gfs2_journaled_truncate() 1327 chunk = oldsize - newsize; in gfs2_journaled_truncate() 1331 offs = oldsize & ~PAGE_MASK; in gfs2_journaled_truncate() 1335 truncate_pagecache(inode, oldsize - chunk); in gfs2_journaled_truncate() 1336 oldsize -= chunk; in gfs2_journaled_truncate() 1357 u64 oldsize = inode->i_size; in trunc_start() local 1393 error = gfs2_journaled_truncate(inode, oldsize, newsize); in trunc_start()
|
/openbmc/linux/fs/f2fs/ |
H A D | xattr.c | 738 int oldsize = ENTRY_SIZE(here); in __f2fs_setxattr() local 741 last = (struct f2fs_xattr_entry *)((char *)last - oldsize); in __f2fs_setxattr() 742 memset(last, 0, oldsize); in __f2fs_setxattr()
|
/openbmc/linux/fs/ntfs3/ |
H A D | file.c | 690 loff_t newsize, oldsize; in ntfs3_setattr() local 698 oldsize = i_size_read(inode); in ntfs3_setattr() 701 if (newsize <= oldsize) in ntfs3_setattr()
|
/openbmc/linux/fs/btrfs/ |
H A D | btrfs_inode.h | 494 int btrfs_cont_expand(struct btrfs_inode *inode, loff_t oldsize, loff_t size);
|
/openbmc/linux/fs/hugetlbfs/ |
H A D | inode.c | 966 loff_t oldsize = inode->i_size; in hugetlbfs_setattr() local 972 if ((newsize < oldsize && (info->seals & F_SEAL_SHRINK)) || in hugetlbfs_setattr() 973 (newsize > oldsize && (info->seals & F_SEAL_GROW))) in hugetlbfs_setattr()
|
/openbmc/linux/include/linux/ |
H A D | slab.h | 764 extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags)
|
/openbmc/linux/fs/ext4/ |
H A D | inode.c | 5407 loff_t oldsize = inode->i_size; in ext4_setattr() local 5450 oldsize & (inode->i_sb->s_blocksize - 1)) { in ext4_setattr() 5473 if (oldsize & (inode->i_sb->s_blocksize - 1)) in ext4_setattr() 5475 inode->i_mapping, oldsize); in ext4_setattr() 5486 (oldsize > 0 ? oldsize - 1 : oldsize) >> in ext4_setattr() 5511 pagecache_isize_extended(inode, oldsize, in ext4_setattr() 5527 if (attr->ia_size <= oldsize) { in ext4_setattr()
|
/openbmc/linux/fs/fuse/ |
H A D | inode.c | 300 loff_t oldsize; in fuse_change_attributes() local 331 oldsize = inode->i_size; in fuse_change_attributes() 344 if (oldsize != attr->size) { in fuse_change_attributes()
|
H A D | dir.c | 1857 loff_t oldsize; in fuse_do_setattr() local 1973 oldsize = inode->i_size; in fuse_do_setattr() 1989 S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { in fuse_do_setattr()
|
/openbmc/qemu/hw/ide/ |
H A D | core.c | 131 unsigned int oldsize; in ide_identify() local 163 oldsize = s->cylinders * s->heads * s->sectors; in ide_identify() 164 put_le16(p + 57, oldsize); in ide_identify() 165 put_le16(p + 58, oldsize >> 16); in ide_identify()
|
/openbmc/linux/drivers/nvme/target/ |
H A D | core.c | 545 loff_t oldsize = ns->size; in nvmet_ns_revalidate() local 552 return oldsize != ns->size; in nvmet_ns_revalidate()
|