Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 130d5b41 authored by David Sterba's avatar David Sterba Committed by Chris Mason
Browse files

btrfs: use E2BIG instead of EIO if compression does not help



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

Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
parent 0a4eaea8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -136,7 +136,7 @@ static int zlib_compress_pages(struct list_head *ws,
		if (workspace->def_strm.total_in > 8192 &&
		    workspace->def_strm.total_in <
		    workspace->def_strm.total_out) {
			ret = -EIO;
			ret = -E2BIG;
			goto out;
		}
		/* we need another page for writing out.  Test this