Skip to contentSkip to conversation

f2fs: remove writeback_inodes_sb in f2fs_remount

PATCH In review Liu Song via Linux-f2fs-devel 2 participants 2 messages Nov 18, 2020 – Nov 20, 2020 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs: remove writeback_inodes_sb in f2fs_remount

From: Liu Song <[email protected]>

Since sync_inodes_sb has been used, there is no need to use writeback_inodes_sb, so remove it.

---
 fs/f2fs/super.c | 1 -
 1 file changed, 1 deletion(-)
fs/f2fs/super.c +0 -1
index be5050292caa..4d8cb17ce48b 100644
@@ -1874,7 +1874,6 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
 
 	if (*flags & SB_RDONLY ||
 		F2FS_OPTION(sbi).whint_mode != org_mount_opt.whint_mode) {
-		writeback_inodes_sb(sb, WB_REASON_SYNC);
 		sync_inodes_sb(sb);
 
 		set_sbi_flag(sbi, SBI_IS_DIRTY);
Signature · 8 lines
2.20.1



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · On 2020/11/18 22:01, Liu Song via Linux-f2fs-devel wrote:

From: Liu Song <[email protected]>

Since sync_inodes_sb has been used, there is no need to use writeback_inodes_sb, so remove it.

Thanks,

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel