summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/compress.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2023-05-05 21:16:54 +0200
committerJaegeuk Kim <jaegeuk@kernel.org>2023-05-24 03:37:42 +0200
commit633c8b9409f564ce4b7f7944c595ffac27ed1ff4 (patch)
tree7b4da259d416c627ef528b3a7d807526bc01e4c2 /fs/f2fs/compress.c
parentf2fs: maintain six open zones for zoned devices (diff)
downloadlinux-633c8b9409f564ce4b7f7944c595ffac27ed1ff4.tar.xz
linux-633c8b9409f564ce4b7f7944c595ffac27ed1ff4.zip
f2fs: fix the wrong condition to determine atomic context
Should use !in_task for irq context. Cc: stable@vger.kernel.org Fixes: 1aa161e43106 ("f2fs: fix scheduling while atomic in decompression path") Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/compress.c')
-rw-r--r--fs/f2fs/compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index 11653fa79289..10b545a1088e 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -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);