Home
last modified time | relevance | path

Searched refs:oldsize (Results 1 – 25 of 29) sorted by relevance

12

/openbmc/linux/sound/hda/
H A Darray.c25 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 Dxfs_dir2_sf.c947 int oldsize; /* old inode size */ in xfs_dir2_sf_removename() local
954 oldsize = (int)dp->i_disk_size; 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()
1176 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino4()
1177 buf = kmem_alloc(oldsize, 0); in xfs_dir2_sf_toino4()
1180 memcpy(buf, oldsfp, oldsize); in xfs_dir2_sf_toino4()
1249 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino8()
1250 buf = kmem_alloc(oldsize, 0); in xfs_dir2_sf_toino8()
[all …]
/openbmc/qemu/hw/ppc/
H A Dspapr_softmmu.c437 void *old_hpt, uint64_t oldsize, in rehash_hpte() argument
441 uint64_t old_hash_mask = (oldsize >> 7) - 1; in rehash_hpte()
499 assert((oldsize != newsize) || (pteg == new_pteg)); in rehash_hpte()
508 assert(newsize < oldsize); in rehash_hpte()
525 void *old_hpt, uint64_t oldsize, in rehash_hpt() argument
528 uint64_t n_ptegs = oldsize >> 7; in rehash_hpt()
543 rc = rehash_hpte(cpu, hptes, old_hpt, oldsize, new_hpt, newsize, in rehash_hpt()
/openbmc/linux/fs/xfs/
H A Dxfs_iops.c793 xfs_off_t oldsize, newsize; in xfs_setattr_size() local
805 oldsize = inode->i_size; in xfs_setattr_size()
811 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size()
844 if (newsize > oldsize) { in xfs_setattr_size()
845 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size()
846 error = xfs_zero_range(ip, oldsize, newsize - oldsize, in xfs_setattr_size()
897 (newsize > ip->i_disk_size && oldsize != ip->i_disk_size)) { in xfs_setattr_size()
922 if (newsize != oldsize && in xfs_setattr_size()
944 if (newsize <= oldsize) { in xfs_setattr_size()
/openbmc/u-boot/common/
H A Ddlmalloc.c1655 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 Ddlmalloc.src2503 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 Dbset.c133 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 Drequest.c93 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 Dmd-cluster.h30 int (*resize_bitmaps)(struct mddev *mddev, sector_t newsize, sector_t oldsize);
H A Draid10.c4360 sector_t oldsize, size; in raid10_resize() local
4368 oldsize = raid10_size(mddev, 0, 0); in raid10_resize()
4380 mddev->recovery_cp > oldsize) { in raid10_resize()
4381 mddev->recovery_cp = oldsize; in raid10_resize()
4639 sector_t oldsize, newsize; in raid10_start_reshape() local
4641 oldsize = raid10_size(mddev, 0, 0); in raid10_start_reshape()
4664 MD_FEATURE_RESHAPE_ACTIVE)) || (oldsize == newsize)) in raid10_start_reshape()
4671 ret = md_cluster_ops->resize_bitmaps(mddev, newsize, oldsize); in raid10_start_reshape()
4673 md_bitmap_resize(mddev->bitmap, oldsize, 0, 0); in raid10_start_reshape()
H A Dmd-cluster.c1127 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 Dtruncate.c761 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 Dutil.c685 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 Dshmem.c177 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()
1184 loff_t oldsize = inode->i_size; in shmem_setattr() local
1192 if (newsize != oldsize) { in shmem_setattr()
1194 oldsize, newsize); in shmem_setattr()
1202 if (newsize <= oldsize) { in shmem_setattr()
1204 if (oldsize > holebegin) in shmem_setattr()
[all …]
/openbmc/linux/fs/f2fs/
H A Dxattr.c737 int oldsize = ENTRY_SIZE(here); in __f2fs_setxattr() local
740 last = (struct f2fs_xattr_entry *)((char *)last - oldsize); in __f2fs_setxattr()
741 memset(last, 0, oldsize); in __f2fs_setxattr()
/openbmc/linux/fs/gfs2/
H A Dbmap.c1316 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/ntfs3/
H A Dfile.c691 loff_t newsize, oldsize; in ntfs3_setattr() local
699 oldsize = i_size_read(inode); in ntfs3_setattr()
702 if (newsize <= oldsize) in ntfs3_setattr()
/openbmc/linux/fs/btrfs/
H A Dbtrfs_inode.h489 int btrfs_cont_expand(struct btrfs_inode *inode, loff_t oldsize, loff_t size);
H A Dfile.c1136 loff_t oldsize; in btrfs_write_check() local
1162 oldsize = i_size_read(inode); in btrfs_write_check()
1163 if (start_pos > oldsize) { in btrfs_write_check()
1167 ret = btrfs_cont_expand(BTRFS_I(inode), oldsize, end_pos); in btrfs_write_check()
/openbmc/linux/include/linux/
H A Dslab.h763 extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags)
/openbmc/linux/fs/hugetlbfs/
H A Dinode.c966 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/fs/fuse/
H A Dinode.c300 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 Ddir.c1857 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 Dcore.c131 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 Dcore.c545 loff_t oldsize = ns->size; in nvmet_ns_revalidate() local
552 return oldsize != ns->size; in nvmet_ns_revalidate()

12