From: Dave Chinner Date: Fri, 28 Nov 2008 03:23:33 +0000 (+1100) Subject: [XFS] fix error inversion problems with data flushing X-Git-Tag: v2.6.29-rc1~552^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e6560929d8ab4b650fecc3a87013852b34f0922;p=pandora-kernel.git [XFS] fix error inversion problems with data flushing XFS gets the sign of the error wrong in several places when gathering the error from generic linux functions. These functions return negative error values, while the core XFS code returns positive error values. Hence when XFS inverts the error to be returned to the VFS, it can incorrectly invert a negative error and this error will be ignored by the syscall return. Fix all the problems related to calling filemap_* functions. Problem initially identified by Nick Piggin in xfs_fsync(). Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Niv Sardi --- Reading git-diff-tree failed