summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/compress.c
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2022-12-21 13:14:45 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2023-01-04 21:56:04 +0100
commitf35474ec0059c318f9d1aff1d492a5494beb6293 (patch)
treeb4e53b16acbd91c9abdc70191bf6b9b79cd63a2c /fs/f2fs/compress.c
parentf2fs: file: drop useless initializer in expand_inode_data() (diff)
downloadlinux-f35474ec0059c318f9d1aff1d492a5494beb6293.tar.xz
linux-f35474ec0059c318f9d1aff1d492a5494beb6293.zip
f2fs: fix to support .migrate_folio for compressed inode
Add missed .migrate_folio for compressed inode, in order to support migration of compressed inode's page. Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/compress.c')
-rw-r--r--fs/f2fs/compress.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c
index 2532f369cb10..719b0a0184b0 100644
--- a/fs/f2fs/compress.c
+++ b/fs/f2fs/compress.c
@@ -1813,6 +1813,7 @@ unsigned int f2fs_cluster_blocks_are_contiguous(struct dnode_of_data *dn)
const struct address_space_operations f2fs_compress_aops = {
.release_folio = f2fs_release_folio,
.invalidate_folio = f2fs_invalidate_folio,
+ .migrate_folio = filemap_migrate_folio,
};
struct address_space *COMPRESS_MAPPING(struct f2fs_sb_info *sbi)