f2fs: fix the wrong condition to determine atomic context
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 5 May 2023 19:16:54 +0000 (12:16 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 24 May 2023 01:37:42 +0000 (18:37 -0700)
commit633c8b9409f564ce4b7f7944c595ffac27ed1ff4
tree7b4da259d416c627ef528b3a7d807526bc01e4c2
parente067dc3c6b9c419bac43c6a0be2d85f44681f863
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>
fs/f2fs/compress.c