btrfs: use E2BIG instead of EIO if compression does not help
authorDavid Sterba <dsterba@suse.cz>
Fri, 20 Jun 2014 09:43:20 +0000 (11:43 +0200)
committerChris Mason <clm@fb.com>
Thu, 3 Jul 2014 14:04:13 +0000 (07:04 -0700)
commit130d5b415a091e493ac1508b9d27bbb85ba7b8c0
tree22372bc71d922d5ba38073dab2283d0ca822eec4
parent0a4eaea892a479aeebccde65986b27cfb6e33a78
btrfs: use E2BIG instead of EIO if compression does not help

Return codes got updated in 60e1975acb48fc3d74a3422b21dde74c977ac3d5
(btrfs: return errno instead of -1 from compression)
lzo wrapper returns E2BIG in this case, do the same for zlib.

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/zlib.c