summaryrefslogtreecommitdiff
path: root/fs/f2fs/compress.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2020-02-18 13:21:35 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2020-03-19 21:41:26 +0300
commit0683728adab251d7747ce61279e249944effa78d (patch)
tree6133f5aa597cb8f5fb53311ea0efa69199186229 /fs/f2fs/compress.c
parent985100035ef5a78889bd2295d1cd91000b133846 (diff)
downloadlinux-0683728adab251d7747ce61279e249944effa78d.tar.xz
f2fs: fix to avoid triggering IO in write path
If we are in write IO path, we need to avoid using GFP_KERNEL. Signed-off-by: Chao Yu <yuchao0@huawei.com> 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 748933813cd1..bd3ea01db448 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -656,7 +656,7 @@ retry:
struct bio *bio = NULL;
ret = f2fs_read_multi_pages(cc, &bio, cc->cluster_size,
- &last_block_in_bio, false);
+ &last_block_in_bio, false, true);
f2fs_destroy_compress_ctx(cc);
if (ret)
goto release_pages;