Skip to content

Commit 3093336

Browse files
chaseyuJaegeuk Kim
authored and
Jaegeuk Kim
committed
f2fs: fix to reset i_gc_failures correctly
Let's reset i_gc_failures to zero when we unset pinned state for file. Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent d3f07c0 commit 3093336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2810,7 +2810,7 @@ static int f2fs_ioc_set_pin_file(struct file *filp, unsigned long arg)
28102810

28112811
if (!pin) {
28122812
clear_inode_flag(inode, FI_PIN_FILE);
2813-
F2FS_I(inode)->i_gc_failures[GC_FAILURE_PIN] = 1;
2813+
f2fs_i_gc_failures_write(inode, 0);
28142814
goto done;
28152815
}
28162816

0 commit comments

Comments
 (0)