From: Zach Brown Date: Fri, 9 May 2014 21:15:08 +0000 (-0400) Subject: btrfs: return errno instead of -1 from compression X-Git-Tag: omap-for-v3.16/fixes-against-rc1~54^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60e1975acb48fc3d74a3422b21dde74c977ac3d5;p=pandora-kernel.git btrfs: return errno instead of -1 from compression The compression layer seems to have been built to return -1 and have callers make up errors that make sense. This isn't great because there are different errors that originate down in the compression layer. Let's return real negative errnos from the compression layer so that callers can pass on the error without having to guess what happened. ENOMEM for allocation failure, E2BIG when compression exceeds the uncompressed input, and EIO for everything else. This helps a future path return errors from btrfs_decompress(). Signed-off-by: Zach Brown Signed-off-by: Chris Mason --- Reading git-diff-tree failed