Lines Matching refs:newsize
811 xfs_off_t oldsize, newsize; in xfs_setattr_size() local
824 newsize = iattr->ia_size; in xfs_setattr_size()
829 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size()
862 if (newsize > oldsize) { in xfs_setattr_size()
863 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size()
864 error = iomap_zero_range(inode, oldsize, newsize - oldsize, in xfs_setattr_size()
873 error = filemap_write_and_wait_range(inode->i_mapping, newsize, in xfs_setattr_size()
874 newsize); in xfs_setattr_size()
877 error = iomap_truncate_page(inode, newsize, &did_zeroing, in xfs_setattr_size()
905 truncate_setsize(inode, newsize); in xfs_setattr_size()
916 (newsize > ip->i_d.di_size && oldsize != ip->i_d.di_size)) { in xfs_setattr_size()
918 ip->i_d.di_size, newsize - 1); in xfs_setattr_size()
941 if (newsize != oldsize && in xfs_setattr_size()
960 ip->i_d.di_size = newsize; in xfs_setattr_size()
963 if (newsize <= oldsize) { in xfs_setattr_size()
964 error = xfs_itruncate_extents(&tp, ip, XFS_DATA_FORK, newsize); in xfs_setattr_size()