mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
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>
This commit is contained in:
parent
0a4eaea892
commit
130d5b415a
@ -136,7 +136,7 @@ static int zlib_compress_pages(struct list_head *ws,
|
|||||||
if (workspace->def_strm.total_in > 8192 &&
|
if (workspace->def_strm.total_in > 8192 &&
|
||||||
workspace->def_strm.total_in <
|
workspace->def_strm.total_in <
|
||||||
workspace->def_strm.total_out) {
|
workspace->def_strm.total_out) {
|
||||||
ret = -EIO;
|
ret = -E2BIG;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
/* we need another page for writing out. Test this
|
/* we need another page for writing out. Test this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user