Lines Matching refs:newsize
828 xfs_off_t oldsize, newsize; in xfs_setattr_size() local
841 newsize = iattr->ia_size; in xfs_setattr_size()
846 if (newsize == 0 && oldsize == 0 && ip->i_d.di_nextents == 0) { in xfs_setattr_size()
879 if (newsize > oldsize) { in xfs_setattr_size()
880 error = xfs_zero_eof(ip, newsize, oldsize, &did_zeroing); in xfs_setattr_size()
882 error = iomap_truncate_page(inode, newsize, &did_zeroing, in xfs_setattr_size()
910 truncate_setsize(inode, newsize); in xfs_setattr_size()
921 (newsize > ip->i_d.di_size && oldsize != ip->i_d.di_size)) { in xfs_setattr_size()
923 ip->i_d.di_size, newsize - 1); in xfs_setattr_size()
946 if (newsize != oldsize && in xfs_setattr_size()
965 ip->i_d.di_size = newsize; in xfs_setattr_size()
968 if (newsize <= oldsize) { in xfs_setattr_size()
969 error = xfs_itruncate_extents(&tp, ip, XFS_DATA_FORK, newsize); in xfs_setattr_size()