f2fs: let's allow compression for mmap files
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 25 May 2021 18:10:53 +0000 (11:10 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 26 May 2021 14:00:36 +0000 (07:00 -0700)
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>
fs/f2fs/compress.c

index ad30f8d..279f79f 100644 (file)
@@ -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))))