diff options
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r-- | fs/f2fs/checkpoint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index dd2e73e10857..4aa69bc1c70a 100644 --- a/fs/f2fs/checkpoint.c +++ b/fs/f2fs/checkpoint.c | |||
@@ -617,17 +617,17 @@ int recover_orphan_inodes(struct f2fs_sb_info *sbi) | |||
617 | if (!is_set_ckpt_flags(sbi, CP_ORPHAN_PRESENT_FLAG)) | 617 | if (!is_set_ckpt_flags(sbi, CP_ORPHAN_PRESENT_FLAG)) |
618 | return 0; | 618 | return 0; |
619 | 619 | ||
620 | if (s_flags & MS_RDONLY) { | 620 | if (s_flags & SB_RDONLY) { |
621 | f2fs_msg(sbi->sb, KERN_INFO, "orphan cleanup on readonly fs"); | 621 | f2fs_msg(sbi->sb, KERN_INFO, "orphan cleanup on readonly fs"); |
622 | sbi->sb->s_flags &= ~MS_RDONLY; | 622 | sbi->sb->s_flags &= ~SB_RDONLY; |
623 | } | 623 | } |
624 | 624 | ||
625 | #ifdef CONFIG_QUOTA | 625 | #ifdef CONFIG_QUOTA |
626 | /* Needed for iput() to work correctly and not trash data */ | 626 | /* Needed for iput() to work correctly and not trash data */ |
627 | sbi->sb->s_flags |= MS_ACTIVE; | 627 | sbi->sb->s_flags |= SB_ACTIVE; |
628 | 628 | ||
629 | /* Turn on quotas so that they are updated correctly */ | 629 | /* Turn on quotas so that they are updated correctly */ |
630 | quota_enabled = f2fs_enable_quota_files(sbi, s_flags & MS_RDONLY); | 630 | quota_enabled = f2fs_enable_quota_files(sbi, s_flags & SB_RDONLY); |
631 | #endif | 631 | #endif |
632 | 632 | ||
633 | start_blk = __start_cp_addr(sbi) + 1 + __cp_payload(sbi); | 633 | start_blk = __start_cp_addr(sbi) + 1 + __cp_payload(sbi); |
@@ -658,7 +658,7 @@ out: | |||
658 | if (quota_enabled) | 658 | if (quota_enabled) |
659 | f2fs_quota_off_umount(sbi->sb); | 659 | f2fs_quota_off_umount(sbi->sb); |
660 | #endif | 660 | #endif |
661 | sbi->sb->s_flags = s_flags; /* Restore MS_RDONLY status */ | 661 | sbi->sb->s_flags = s_flags; /* Restore SB_RDONLY status */ |
662 | 662 | ||
663 | return err; | 663 | return err; |
664 | } | 664 | } |