From 0683728adab251d7747ce61279e249944effa78d Mon Sep 17 00:00:00 2001 From: Chao Yu Date: Tue, 18 Feb 2020 18:21:35 +0800 Subject: 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 Signed-off-by: Jaegeuk Kim --- fs/f2fs/compress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/f2fs/compress.c') 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; -- cgit v1.2.3