Revert "f2fs: avoid attaching SB_ACTIVE flag during mount/remount"

This reverts commit 42bbf0bcc2.
This commit is contained in:
Jaegeuk Kim
2021-06-23 01:42:05 -07:00
parent c81ac64da1
commit bb51a33182
3 changed files with 16 additions and 6 deletions

View File

@@ -691,6 +691,9 @@ int f2fs_recover_orphan_inodes(struct f2fs_sb_info *sbi)
}
#ifdef CONFIG_QUOTA
/* Needed for iput() to work correctly and not trash data */
sbi->sb->s_flags |= SB_ACTIVE;
/*
* Turn on quotas which were not enabled for read-only mounts if
* filesystem has quota feature, so that they are updated correctly.