projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e067dc3
)
f2fs: fix the wrong condition to determine atomic context
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Fri, 5 May 2023 19:16:54 +0000
(12:16 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Wed, 24 May 2023 01:37:42 +0000
(18:37 -0700)
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>
fs/f2fs/compress.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/compress.c
b/fs/f2fs/compress.c
index 11653fa792897df001031e179a52e5c69965fb0d..10b545a1088e53d3aacdde6c3ee519947b175ce6 100644
(file)
--- 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);