Home
last modified time | relevance | path

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

/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 …]
/fs/xfs/
Dxfs_iops.c787 xfs_off_t oldsize, newsize; in xfs_setattr_size() local
799 oldsize = inode->i_size; in xfs_setattr_size()
805 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size()
838 if (newsize > oldsize) { in xfs_setattr_size()
839 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size()
840 error = xfs_zero_range(ip, oldsize, newsize - oldsize, in xfs_setattr_size()
891 (newsize > ip->i_disk_size && oldsize != ip->i_disk_size)) { in xfs_setattr_size()
916 if (newsize != oldsize && in xfs_setattr_size()
938 if (newsize <= oldsize) { in xfs_setattr_size()
/fs/gfs2/
Dbmap.c1302 static int gfs2_journaled_truncate(struct inode *inode, u64 oldsize, u64 newsize) in gfs2_journaled_truncate() argument
1309 while (oldsize != newsize) { in gfs2_journaled_truncate()
1313 chunk = oldsize - newsize; in gfs2_journaled_truncate()
1317 offs = oldsize & ~PAGE_MASK; in gfs2_journaled_truncate()
1321 truncate_pagecache(inode, oldsize - chunk); in gfs2_journaled_truncate()
1322 oldsize -= chunk; in gfs2_journaled_truncate()
1343 u64 oldsize = inode->i_size; in trunc_start() local
1379 error = gfs2_journaled_truncate(inode, oldsize, newsize); in trunc_start()
/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()
/fs/ntfs3/
Dfile.c782 loff_t oldsize = inode->i_size; in ntfs3_setattr() local
791 if (attr->ia_size <= oldsize) in ntfs3_setattr()
793 else if (attr->ia_size > oldsize) in ntfs3_setattr()
/fs/hugetlbfs/
Dinode.c926 loff_t oldsize = inode->i_size; in hugetlbfs_setattr() local
932 if ((newsize < oldsize && (info->seals & F_SEAL_SHRINK)) || in hugetlbfs_setattr()
933 (newsize > oldsize && (info->seals & F_SEAL_GROW))) in hugetlbfs_setattr()
/fs/fuse/
Dinode.c317 loff_t oldsize; in fuse_change_attributes() local
348 oldsize = inode->i_size; in fuse_change_attributes()
361 if (oldsize != attr->size) { in fuse_change_attributes()
Ddir.c1979 loff_t oldsize; in fuse_do_setattr() local
2105 oldsize = inode->i_size; in fuse_do_setattr()
2121 S_ISREG(inode->i_mode) && oldsize != outarg.attr.size) { in fuse_do_setattr()
/fs/btrfs/
Dfile.c1124 loff_t oldsize; in btrfs_write_check() local
1151 oldsize = i_size_read(inode); in btrfs_write_check()
1152 if (start_pos > oldsize) { in btrfs_write_check()
1156 ret = btrfs_cont_expand(BTRFS_I(inode), oldsize, end_pos); in btrfs_write_check()
Dinode.c5109 int btrfs_cont_expand(struct btrfs_inode *inode, loff_t oldsize, loff_t size) in btrfs_cont_expand() argument
5116 u64 hole_start = ALIGN(oldsize, fs_info->sectorsize); in btrfs_cont_expand()
5128 err = btrfs_truncate_block(inode, oldsize, 0, 0); in btrfs_cont_expand()
5206 loff_t oldsize = i_size_read(inode); in btrfs_setsize() local
5217 if (newsize != oldsize) { in btrfs_setsize()
5225 if (newsize > oldsize) { in btrfs_setsize()
5234 ret = btrfs_cont_expand(BTRFS_I(inode), oldsize, newsize); in btrfs_setsize()
5248 pagecache_isize_extended(inode, oldsize, newsize); in btrfs_setsize()
5276 ret = btrfs_truncate(inode, newsize == oldsize); in btrfs_setsize()
Dctree.h3440 int btrfs_cont_expand(struct btrfs_inode *inode, loff_t oldsize, loff_t size);
/fs/ext4/
Dinode.c5477 loff_t oldsize = inode->i_size; in ext4_setattr() local
5544 (oldsize > 0 ? oldsize - 1 : oldsize) >> in ext4_setattr()
5569 pagecache_isize_extended(inode, oldsize, in ext4_setattr()
5585 if (attr->ia_size <= oldsize) { in ext4_setattr()