Skip to content

Commit 5cc69a2

Browse files
Daeho JeongJaegeuk Kim
authored andcommitted
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: 9703d69 ("f2fs: support file pinning for zoned devices") Signed-off-by: Daeho Jeong <daehojeong@google.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 2af583a commit 5cc69a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/f2fs/gc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,8 +2070,7 @@ int f2fs_gc_range(struct f2fs_sb_info *sbi,
20702070
.iroot = RADIX_TREE_INIT(gc_list.iroot, GFP_NOFS),
20712071
};
20722072

2073-
do_garbage_collect(sbi, segno, &gc_list, FG_GC,
2074-
dry_run_sections == 0, false);
2073+
do_garbage_collect(sbi, segno, &gc_list, FG_GC, true, false);
20752074
put_gc_inode(&gc_list);
20762075

20772076
if (!dry_run && get_valid_blocks(sbi, segno, true))

0 commit comments

Comments
 (0)