Skip to content

Commit d284af4

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: compress: fix to print raw data size in error path of lz4 decompression
In lz4_decompress_pages(), if size of decompressed data is not equal to expected one, we should print the size rather than size of target buffer for decompressed data, fix it. Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 646f64b commit d284af4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fs/f2fs/compress.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,9 @@ static int lz4_decompress_pages(struct decompress_io_ctx *dic)
314314
}
315315

316316
if (ret != PAGE_SIZE << dic->log_cluster_size) {
317-
printk_ratelimited("%sF2FS-fs (%s): lz4 invalid rlen:%zu, "
317+
printk_ratelimited("%sF2FS-fs (%s): lz4 invalid ret:%d, "
318318
"expected:%lu\n", KERN_ERR,
319-
F2FS_I_SB(dic->inode)->sb->s_id,
320-
dic->rlen,
319+
F2FS_I_SB(dic->inode)->sb->s_id, ret,
321320
PAGE_SIZE << dic->log_cluster_size);
322321
return -EIO;
323322
}

0 commit comments

Comments
 (0)