Lines Matching refs:newsize
787 xfs_off_t oldsize, newsize; in xfs_setattr_size() local
800 newsize = iattr->ia_size; in xfs_setattr_size()
805 if (newsize == 0 && oldsize == 0 && ip->i_df.if_nextents == 0) { in xfs_setattr_size()
838 if (newsize > oldsize) { in xfs_setattr_size()
839 trace_xfs_zero_eof(ip, oldsize, newsize - oldsize); in xfs_setattr_size()
840 error = xfs_zero_range(ip, oldsize, newsize - oldsize, in xfs_setattr_size()
849 error = filemap_write_and_wait_range(inode->i_mapping, newsize, in xfs_setattr_size()
850 newsize); in xfs_setattr_size()
853 error = xfs_truncate_page(ip, newsize, &did_zeroing); in xfs_setattr_size()
880 truncate_setsize(inode, newsize); in xfs_setattr_size()
891 (newsize > ip->i_disk_size && oldsize != ip->i_disk_size)) { in xfs_setattr_size()
893 ip->i_disk_size, newsize - 1); in xfs_setattr_size()
916 if (newsize != oldsize && in xfs_setattr_size()
935 ip->i_disk_size = newsize; in xfs_setattr_size()
938 if (newsize <= oldsize) { in xfs_setattr_size()
939 error = xfs_itruncate_extents(&tp, ip, XFS_DATA_FORK, newsize); in xfs_setattr_size()