|
@@ -661,7 +661,10 @@ int f2fs_recover_orphan_inodes(struct f2fs_sb_info *sbi)
|
|
|
/* Needed for iput() to work correctly and not trash data */
|
|
|
sbi->sb->s_flags |= SB_ACTIVE;
|
|
|
|
|
|
- /* Turn on quotas so that they are updated correctly */
|
|
|
+ /*
|
|
|
+ * Turn on quotas which were not enabled for read-only mounts if
|
|
|
+ * filesystem has quota feature, so that they are updated correctly.
|
|
|
+ */
|
|
|
quota_enabled = f2fs_enable_quota_files(sbi, s_flags & SB_RDONLY);
|
|
|
#endif
|
|
|
|