[PATCH] f2fs: fix to support .migrate_folio for compressed inode

Chao Yu posted 1 patch 2 years, 8 months ago
fs/f2fs/compress.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] f2fs: fix to support .migrate_folio for compressed inode
Posted by Chao Yu 2 years, 8 months ago
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>
---
 fs/f2fs/compress.c | 1 +
 1 file changed, 1 insertion(+)

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)
-- 
2.36.1
Re: [f2fs-dev] [PATCH] f2fs: fix to support .migrate_folio for compressed inode
Posted by patchwork-bot+f2fs@kernel.org 2 years, 8 months ago
Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@kernel.org>:

On Wed, 21 Dec 2022 20:14:45 +0800 you wrote:
> 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>
> ---
>  fs/f2fs/compress.c | 1 +
>  1 file changed, 1 insertion(+)

Here is the summary with links:
  - [f2fs-dev] f2fs: fix to support .migrate_folio for compressed inode
    https://git.kernel.org/jaegeuk/f2fs/c/f35474ec0059

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html