Commit 633c8b94 authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: fix the wrong condition to determine atomic context

Should use !in_task for irq context.

Cc: stable@vger.kernel.org
Fixes: 1aa161e4 ("f2fs: fix scheduling while atomic in decompression path")
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent e067dc3c
......@@ -743,7 +743,7 @@ void f2fs_decompress_cluster(struct decompress_io_ctx *dic, bool in_task)
ret = -EFSCORRUPTED;
/* Avoid f2fs_commit_super in irq context */
if (in_task)
if (!in_task)
f2fs_save_errors(sbi, ERROR_FAIL_DECOMPRESSION);
else
f2fs_handle_error(sbi, ERROR_FAIL_DECOMPRESSION);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment