From: Dave Chinner Date: Mon, 12 Nov 2012 11:54:02 +0000 (+1100) Subject: xfs: uncached buffer reads need to return an error X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~55^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eab4e633;p=pandora-kernel.git xfs: uncached buffer reads need to return an error With verification being done as an IO completion callback, different errors can be returned from a read. Uncached reads only return a buffer or NULL on failure, which means the verification error cannot be returned to the caller. Split the error handling for these reads into two - a failure to get a buffer will still return NULL, but a read error will return a referenced buffer with b_error set rather than NULL. The caller is responsible for checking the error state of the buffer returned. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Reviewed-by: Phil White Signed-off-by: Ben Myers --- Reading git-diff-tree failed