From: Christoph Hellwig Date: Fri, 8 Jul 2011 12:34:30 +0000 (+0200) Subject: xfs: kill xfs_itruncate_start X-Git-Tag: v3.1-rc1~322^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=857b9778d86ccba7d7b42c9d8aeecde794ec8a6b;p=pandora-kernel.git xfs: kill xfs_itruncate_start xfs_itruncate_start is a rather length wrapper that evaluates to a call to xfs_ioend_wait and xfs_tosspages, and only has two callers. Instead of using the complicated checks left over from IRIX where we can to truncate the pagecache just call xfs_tosspages (aka truncate_inode_pages) directly as we want to get rid of all data after i_size, and truncate_inode_pages handles incorrect alignments and too large offsets just fine. Signed-off-by: Christoph Hellwig Reviewed-by: Alex Elder Reviewed-by: Dave Chinner --- Reading git-diff-tree failed