提交 130d5b41 编写于 作者: D David Sterba 提交者: Chris Mason

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: NDavid Sterba <dsterba@suse.cz>
上级 0a4eaea8
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册