Lines Matching refs:oldsize
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
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()
1184 newsize = oldsize - (oldsfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_toino4()
1185 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4()
1238 int oldsize; /* old inode size */ in xfs_dir2_sf_toino8() local
1249 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino8()
1250 buf = kmem_alloc(oldsize, 0); in xfs_dir2_sf_toino8()
1253 memcpy(buf, oldsfp, oldsize); in xfs_dir2_sf_toino8()
1257 newsize = oldsize + (oldsfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_toino8()
1258 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino8()