Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Sterba and committed by
Chris Mason
130d5b41 0a4eaea8

+1 -1
+1 -1
fs/btrfs/zlib.c
··· 136 136 if (workspace->def_strm.total_in > 8192 && 137 137 workspace->def_strm.total_in < 138 138 workspace->def_strm.total_out) { 139 - ret = -EIO; 139 + ret = -E2BIG; 140 140 goto out; 141 141 } 142 142 /* we need another page for writing out. Test this