Lines Matching refs:oldsize
944 int oldsize; /* old inode size */ in xfs_dir2_sf_removename() local
952 oldsize = (int)dp->i_d.di_size; in xfs_dir2_sf_removename()
956 if (oldsize < offsetof(xfs_dir2_sf_hdr_t, parent)) { in xfs_dir2_sf_removename()
960 ASSERT(dp->i_df.if_bytes == oldsize); in xfs_dir2_sf_removename()
963 ASSERT(oldsize >= XFS_DIR2_SF_HDR_SIZE(sfp->hdr.i8count)); in xfs_dir2_sf_removename()
991 newsize = oldsize - entsize; in xfs_dir2_sf_removename()
995 if (byteoff + entsize < oldsize) in xfs_dir2_sf_removename()
997 oldsize - (byteoff + entsize)); in xfs_dir2_sf_removename()
1006 xfs_idata_realloc(dp, newsize - oldsize, XFS_DATA_FORK); in xfs_dir2_sf_removename()
1182 int oldsize; /* old inode size */ in xfs_dir2_sf_toino4() local
1194 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino4()
1195 buf = kmem_alloc(oldsize, KM_SLEEP); in xfs_dir2_sf_toino4()
1198 memcpy(buf, oldsfp, oldsize); in xfs_dir2_sf_toino4()
1203 oldsize - in xfs_dir2_sf_toino4()
1206 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino4()
1238 kmem_free(buf, oldsize); in xfs_dir2_sf_toino4()
1259 int oldsize; /* old inode size */ in xfs_dir2_sf_toino8() local
1271 oldsize = dp->i_df.if_bytes; in xfs_dir2_sf_toino8()
1272 buf = kmem_alloc(oldsize, KM_SLEEP); in xfs_dir2_sf_toino8()
1275 memcpy(buf, oldsfp, oldsize); in xfs_dir2_sf_toino8()
1280 oldsize + in xfs_dir2_sf_toino8()
1283 xfs_idata_realloc(dp, -oldsize, XFS_DATA_FORK); in xfs_dir2_sf_toino8()
1315 kmem_free(buf, oldsize); in xfs_dir2_sf_toino8()