Skip to content

Commit e3c5483

Browse files
author
Jaegeuk Kim
committed
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>
1 parent 0dd5717 commit e3c5483

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎fs/f2fs/compress.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,6 @@ static bool cluster_may_compress(struct compress_ctx *cc)
952952
return false;
953953
if (f2fs_is_atomic_file(cc->inode))
954954
return false;
955-
if (f2fs_is_mmap_file(cc->inode))
956-
return false;
957955
if (!f2fs_cluster_is_full(cc))
958956
return false;
959957
if (unlikely(f2fs_cp_error(F2FS_I_SB(cc->inode))))

0 commit comments

Comments
 (0)