summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2021-05-25 11:10:53 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2021-05-26 07:00:36 -0700
commite3c548323d32b11d3fba71f993e17b0ccdeca5cb (patch)
treea64b7437a9841d427d5432f5a108e594ebc18dc7 /fs/f2fs
parent0dd571785d61528d62cdd8aa49d76bc6085152fe (diff)
f2fs: let's allow compression for mmap files
This patch allows to compress mmap files. E.g., for so files. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/compress.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index ad30f8dde541..279f79f4fb1c 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -952,8 +952,6 @@ static bool cluster_may_compress(struct compress_ctx *cc)
return false;
if (f2fs_is_atomic_file(cc->inode))
return false;
- if (f2fs_is_mmap_file(cc->inode))
- return false;
if (!f2fs_cluster_is_full(cc))
return false;
if (unlikely(f2fs_cp_error(F2FS_I_SB(cc->inode))))