Loading fs/f2fs/super.c +3 −0 Original line number Diff line number Diff line Loading @@ -1040,10 +1040,13 @@ static void f2fs_umount_end(struct super_block *sb, int flags) if ((flags & MNT_FORCE) || atomic_read(&sb->s_active) > 1) { /* to write the latest kbytes_written */ if (!(sb->s_flags & MS_RDONLY)) { struct f2fs_sb_info *sbi = F2FS_SB(sb); struct cp_control cpc = { .reason = CP_UMOUNT, }; mutex_lock(&sbi->gc_mutex); f2fs_write_checkpoint(F2FS_SB(sb), &cpc); mutex_unlock(&sbi->gc_mutex); } } } Loading Loading
fs/f2fs/super.c +3 −0 Original line number Diff line number Diff line Loading @@ -1040,10 +1040,13 @@ static void f2fs_umount_end(struct super_block *sb, int flags) if ((flags & MNT_FORCE) || atomic_read(&sb->s_active) > 1) { /* to write the latest kbytes_written */ if (!(sb->s_flags & MS_RDONLY)) { struct f2fs_sb_info *sbi = F2FS_SB(sb); struct cp_control cpc = { .reason = CP_UMOUNT, }; mutex_lock(&sbi->gc_mutex); f2fs_write_checkpoint(F2FS_SB(sb), &cpc); mutex_unlock(&sbi->gc_mutex); } } } Loading