Home
last modified time | relevance | path

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

/linux-6.12.1/fs/bcachefs/
Dkeylist.c10 size_t oldsize = bch2_keylist_u64s(l); in bch2_keylist_realloc() local
11 size_t newsize = oldsize + new_u64s; in bch2_keylist_realloc()
18 (old_buf && roundup_pow_of_two(oldsize) == newsize)) in bch2_keylist_realloc()
26 memcpy_u64s(new_keys, inline_u64s, oldsize); in bch2_keylist_realloc()
29 l->top_p = new_keys + oldsize; in bch2_keylist_realloc()
/linux-6.12.1/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.12.1/fs/xfs/libxfs/
Dxfs_dir2_sf.c927 int oldsize; /* old inode size */ in xfs_dir2_sf_removename() local
933 oldsize = (int)dp->i_disk_size; in xfs_dir2_sf_removename()
934 ASSERT(oldsize >= offsetof(struct xfs_dir2_sf_hdr, parent)); in xfs_dir2_sf_removename()
935 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename()
937 ASSERT(oldsize >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_removename()
961 newsize = oldsize - entsize; in xfs_dir2_sf_removename()
965 if (byteoff + entsize < oldsize) in xfs_dir2_sf_removename()
967 oldsize - (byteoff + entsize)); in xfs_dir2_sf_removename()
977 sfp = xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename()
1142 int oldsize; /* old inode size */ in xfs_dir2_sf_toino4() local
[all …]
/linux-6.12.1/arch/s390/mm/
Ddump_pagetables.c252 size_t oldsize, newsize; in add_marker() local
254 oldsize = markers_cnt * sizeof(*markers); in add_marker()
255 newsize = oldsize + 2 * sizeof(*markers); in add_marker()
256 if (!oldsize) in add_marker()
/linux-6.12.1/fs/xfs/
Dxfs_iops.c817 xfs_off_t oldsize, newsize; in xfs_setattr_size() local
829 oldsize = inode->i_size; in xfs_setattr_size()
835 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size()
868 if (newsize > oldsize) { in xfs_setattr_size()
869 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size()
870 error = xfs_zero_range(ip, oldsize, newsize - oldsize, in xfs_setattr_size()
911 (newsize > ip->i_disk_size && oldsize != ip->i_disk_size)) { in xfs_setattr_size()
946 if (newsize != oldsize && in xfs_setattr_size()
968 if (newsize <= oldsize) { in xfs_setattr_size()
/linux-6.12.1/drivers/md/bcache/
Dbset.c137 size_t oldsize = bch_keylist_nkeys(l); in __bch_keylist_realloc() local
138 size_t newsize = oldsize + u64s; in __bch_keylist_realloc()
145 roundup_pow_of_two(oldsize) == newsize) in __bch_keylist_realloc()
154 memcpy(new_keys, l->inline_keys, sizeof(uint64_t) * oldsize); in __bch_keylist_realloc()
157 l->top_p = new_keys + oldsize; in __bch_keylist_realloc()
1328 int oldsize = bch_count_data(b); in bch_btree_sort_partial() local
1344 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.c2213 int oldsize = bch_count_data(&b->keys); in bch_btree_insert_keys() local
2246 BUG_ON(bch_count_data(&b->keys) < oldsize); in bch_btree_insert_keys()
/linux-6.12.1/drivers/md/
Dmd-cluster.h32 int (*resize_bitmaps)(struct mddev *mddev, sector_t newsize, sector_t oldsize);
Draid10.c4201 sector_t oldsize, size; in raid10_resize() local
4210 oldsize = raid10_size(mddev, 0, 0); in raid10_resize()
4222 mddev->recovery_cp > oldsize) { in raid10_resize()
4223 mddev->recovery_cp = oldsize; in raid10_resize()
4479 sector_t oldsize, newsize; in raid10_start_reshape() local
4481 oldsize = raid10_size(mddev, 0, 0); in raid10_start_reshape()
4504 MD_FEATURE_RESHAPE_ACTIVE)) || (oldsize == newsize)) in raid10_start_reshape()
4511 ret = md_cluster_ops->resize_bitmaps(mddev, newsize, oldsize); in raid10_start_reshape()
4513 mddev->bitmap_ops->resize(mddev, oldsize, 0, false); in raid10_start_reshape()
Dmd-cluster.c1145 static int resize_bitmaps(struct mddev *mddev, sector_t newsize, sector_t oldsize) in resize_bitmaps() argument
1210 update_bitmap_size(mddev, oldsize); in resize_bitmaps()
/linux-6.12.1/mm/
Dtruncate.c747 loff_t oldsize = inode->i_size; in truncate_setsize() local
750 if (newsize > oldsize) in truncate_setsize()
751 pagecache_isize_extended(inode, oldsize, newsize); in truncate_setsize()
Dshmem.c184 loff_t oldsize, loff_t newsize) in shmem_reacct_size() argument
187 if (VM_ACCT(newsize) > VM_ACCT(oldsize)) in shmem_reacct_size()
189 VM_ACCT(newsize) - VM_ACCT(oldsize)); in shmem_reacct_size()
190 else if (VM_ACCT(newsize) < VM_ACCT(oldsize)) in shmem_reacct_size()
191 vm_unacct_memory(VM_ACCT(oldsize) - VM_ACCT(newsize)); in shmem_reacct_size()
1203 loff_t oldsize = inode->i_size; in shmem_setattr() local
1207 if ((newsize < oldsize && (info->seals & F_SEAL_SHRINK)) || in shmem_setattr()
1208 (newsize > oldsize && (info->seals & F_SEAL_GROW))) in shmem_setattr()
1211 if (newsize != oldsize) { in shmem_setattr()
1213 oldsize, newsize); in shmem_setattr()
[all …]
/linux-6.12.1/fs/gfs2/
Dbmap.c1319 static int gfs2_journaled_truncate(struct inode *inode, u64 oldsize, u64 newsize) in gfs2_journaled_truncate() argument
1326 while (oldsize != newsize) { in gfs2_journaled_truncate()
1330 chunk = oldsize - newsize; in gfs2_journaled_truncate()
1334 offs = oldsize & ~PAGE_MASK; in gfs2_journaled_truncate()
1338 truncate_pagecache(inode, oldsize - chunk); in gfs2_journaled_truncate()
1339 oldsize -= chunk; in gfs2_journaled_truncate()
1360 u64 oldsize = inode->i_size; in trunc_start() local
1396 error = gfs2_journaled_truncate(inode, oldsize, newsize); in trunc_start()
/linux-6.12.1/fs/f2fs/
Dxattr.c738 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()
/linux-6.12.1/fs/ntfs3/
Dfile.c810 loff_t newsize, oldsize; in ntfs_setattr() local
818 oldsize = i_size_read(inode); in ntfs_setattr()
821 if (newsize <= oldsize) in ntfs_setattr()
/linux-6.12.1/fs/btrfs/
Dbtrfs_inode.h599 int btrfs_cont_expand(struct btrfs_inode *inode, loff_t oldsize, loff_t size);
Dfile.c1150 loff_t oldsize; in btrfs_write_check() local
1176 oldsize = i_size_read(inode); in btrfs_write_check()
1177 if (start_pos > oldsize) { in btrfs_write_check()
1181 ret = btrfs_cont_expand(BTRFS_I(inode), oldsize, end_pos); in btrfs_write_check()
Dinode.c4919 int btrfs_cont_expand(struct btrfs_inode *inode, loff_t oldsize, loff_t size) in btrfs_cont_expand() argument
4926 u64 hole_start = ALIGN(oldsize, fs_info->sectorsize); in btrfs_cont_expand()
4938 ret = btrfs_truncate_block(inode, oldsize, 0, 0); in btrfs_cont_expand()
5011 loff_t oldsize = i_size_read(inode); in btrfs_setsize() local
5022 if (newsize != oldsize) { in btrfs_setsize()
5030 if (newsize > oldsize) { in btrfs_setsize()
5039 ret = btrfs_cont_expand(BTRFS_I(inode), oldsize, newsize); in btrfs_setsize()
5053 pagecache_isize_extended(inode, oldsize, newsize); in btrfs_setsize()
5081 ret = btrfs_truncate(BTRFS_I(inode), newsize == oldsize); in btrfs_setsize()
/linux-6.12.1/fs/hugetlbfs/
Dinode.c939 loff_t oldsize = inode->i_size; in hugetlbfs_setattr() local
945 if ((newsize < oldsize && (info->seals & F_SEAL_SHRINK)) || in hugetlbfs_setattr()
946 (newsize > oldsize && (info->seals & F_SEAL_GROW))) in hugetlbfs_setattr()
/linux-6.12.1/fs/fuse/
Dinode.c305 loff_t oldsize; in fuse_change_attributes() local
336 oldsize = inode->i_size; in fuse_change_attributes()
349 if (oldsize != attr->size) { in fuse_change_attributes()
Ddir.c1916 loff_t oldsize; in fuse_do_setattr() local
2032 oldsize = inode->i_size; in fuse_do_setattr()
2048 S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { in fuse_do_setattr()
/linux-6.12.1/fs/ext4/
Dinode.c5388 loff_t oldsize = inode->i_size; in ext4_setattr() local
5454 (oldsize > 0 ? oldsize - 1 : oldsize) >> in ext4_setattr()
5479 pagecache_isize_extended(inode, oldsize, in ext4_setattr()
5495 if (attr->ia_size <= oldsize) { in ext4_setattr()
/linux-6.12.1/drivers/nvme/target/
Dcore.c558 loff_t oldsize = ns->size; in nvmet_ns_revalidate() local
565 return oldsize != ns->size; in nvmet_ns_revalidate()