Home
last modified time | relevance | path

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

/linux-6.6.21/sound/hda/
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()
/linux-6.6.21/fs/xfs/libxfs/
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()
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 …]
/linux-6.6.21/fs/xfs/
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()
/linux-6.6.21/drivers/md/bcache/
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()
Drequest.c93 size_t oldsize = bch_keylist_nkeys(l); in bch_keylist_realloc() local
94 size_t newsize = oldsize + u64s; in bch_keylist_realloc()
Dbtree.c2192 int oldsize = bch_count_data(&b->keys); in bch_btree_insert_keys() local
2225 BUG_ON(bch_count_data(&b->keys) < oldsize); in bch_btree_insert_keys()
/linux-6.6.21/drivers/md/
Dmd-cluster.h30 int (*resize_bitmaps)(struct mddev *mddev, sector_t newsize, sector_t oldsize);
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()
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()
/linux-6.6.21/mm/
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()
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()
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()
1190 loff_t oldsize = inode->i_size; in shmem_setattr() local
1194 if ((newsize < oldsize && (info->seals & F_SEAL_SHRINK)) || in shmem_setattr()
1195 (newsize > oldsize && (info->seals & F_SEAL_GROW))) in shmem_setattr()
1198 if (newsize != oldsize) { in shmem_setattr()
1200 oldsize, newsize); in shmem_setattr()
[all …]
/linux-6.6.21/fs/f2fs/
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()
/linux-6.6.21/fs/gfs2/
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()
/linux-6.6.21/fs/ntfs3/
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()
/linux-6.6.21/fs/btrfs/
Dbtrfs_inode.h489 int btrfs_cont_expand(struct btrfs_inode *inode, loff_t oldsize, loff_t size);
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()
Dinode.c4867 int btrfs_cont_expand(struct btrfs_inode *inode, loff_t oldsize, loff_t size) in btrfs_cont_expand() argument
4874 u64 hole_start = ALIGN(oldsize, fs_info->sectorsize); in btrfs_cont_expand()
4886 err = btrfs_truncate_block(inode, oldsize, 0, 0); in btrfs_cont_expand()
4964 loff_t oldsize = i_size_read(inode); in btrfs_setsize() local
4975 if (newsize != oldsize) { in btrfs_setsize()
4982 if (newsize > oldsize) { in btrfs_setsize()
4991 ret = btrfs_cont_expand(BTRFS_I(inode), oldsize, newsize); in btrfs_setsize()
5005 pagecache_isize_extended(inode, oldsize, newsize); in btrfs_setsize()
5033 ret = btrfs_truncate(BTRFS_I(inode), newsize == oldsize); in btrfs_setsize()
/linux-6.6.21/fs/hugetlbfs/
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()
/linux-6.6.21/include/linux/
Dslab.h763 extern void *kvrealloc(const void *p, size_t oldsize, size_t newsize, gfp_t flags)
/linux-6.6.21/fs/fuse/
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()
Ddir.c1852 loff_t oldsize; in fuse_do_setattr() local
1968 oldsize = inode->i_size; in fuse_do_setattr()
1984 S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { in fuse_do_setattr()
/linux-6.6.21/drivers/nvme/target/
Dcore.c542 loff_t oldsize = ns->size; in nvmet_ns_revalidate() local
549 return oldsize != ns->size; in nvmet_ns_revalidate()
/linux-6.6.21/fs/ext4/
Dinode.c5373 loff_t oldsize = inode->i_size; in ext4_setattr() local
5438 (oldsize > 0 ? oldsize - 1 : oldsize) >> in ext4_setattr()
5463 pagecache_isize_extended(inode, oldsize, in ext4_setattr()
5479 if (attr->ia_size <= oldsize) { in ext4_setattr()