Commit 5cc69a27 authored by Daeho Jeong's avatar Daeho Jeong Committed by Jaegeuk Kim

f2fs: forcibly migrate to secure space for zoned device file pinning

We need to migrate data blocks even though it is full to secure space
for zoned device file pinning.

Fixes: 9703d69d ("f2fs: support file pinning for zoned devices")
Signed-off-by: default avatarDaeho Jeong <daehojeong@google.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 2af583af
...@@ -2070,8 +2070,7 @@ int f2fs_gc_range(struct f2fs_sb_info *sbi, ...@@ -2070,8 +2070,7 @@ int f2fs_gc_range(struct f2fs_sb_info *sbi,
.iroot = RADIX_TREE_INIT(gc_list.iroot, GFP_NOFS), .iroot = RADIX_TREE_INIT(gc_list.iroot, GFP_NOFS),
}; };
do_garbage_collect(sbi, segno, &gc_list, FG_GC, do_garbage_collect(sbi, segno, &gc_list, FG_GC, true, false);
dry_run_sections == 0, false);
put_gc_inode(&gc_list); put_gc_inode(&gc_list);
if (!dry_run && get_valid_blocks(sbi, segno, true)) if (!dry_run && get_valid_blocks(sbi, segno, true))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment