Lines Matching refs:oldsize
875 int oldsize; /* old inode size */ in xfs_dir2_sf_removename() local
884 oldsize = (int)dp->i_d.di_size; in xfs_dir2_sf_removename()
888 if (oldsize < offsetof(xfs_dir2_sf_hdr_t, parent)) { in xfs_dir2_sf_removename()
892 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename()
895 ASSERT(oldsize >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_removename()
919 newsize = oldsize - entsize; in xfs_dir2_sf_removename()
923 if (byteoff + entsize < oldsize) in xfs_dir2_sf_removename()
925 oldsize - (byteoff + entsize)); in xfs_dir2_sf_removename()
934 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename()
1088 int oldsize; /* old inode size */ in xfs_dir2_sf_toino4() local
1101 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino4()
1102 buf = kmem_alloc(oldsize, KM_SLEEP); in xfs_dir2_sf_toino4()
1105 memcpy(buf, oldsfp, oldsize); in xfs_dir2_sf_toino4()
1109 newsize = oldsize - (oldsfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_toino4()
1110 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4()
1161 int oldsize; /* old inode size */ in xfs_dir2_sf_toino8() local
1174 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino8()
1175 buf = kmem_alloc(oldsize, KM_SLEEP); in xfs_dir2_sf_toino8()
1178 memcpy(buf, oldsfp, oldsize); in xfs_dir2_sf_toino8()
1182 newsize = oldsize + (oldsfp->count + 1) * XFS_INO64_DIFF; in xfs_dir2_sf_toino8()
1183 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino8()