From: Dave Chinner Date: Wed, 14 Nov 2012 06:42:47 +0000 (+1100) Subject: xfs: remove xfs_tosspages X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~55^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5b8911b67eb4f15d95d5e5324d376d4a49d56e8;p=pandora-kernel.git xfs: remove xfs_tosspages It's a buggy, unnecessary wrapper that is duplicating truncate_pagecache_range(). When replacing the call in xfs_change_file_space(), also ensure that the length being allocated/freed is always positive before making any changes. These checks are done in the lower extent manipulation functions, too, but we need to do them before any page cache operations. Reported-by: Andrew Dahl Signed-off-by: Dave Chinner Reviewed-By: Andrew Dahl Signed-off-by: Ben Myers --- Reading git-diff-tree failed