diff options
Diffstat (limited to 'fs/ext3/super.c')
-rw-r--r-- | fs/ext3/super.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index f6c94f232ec1..c22d01467bd1 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -713,7 +713,9 @@ static struct dquot_operations ext3_quota_operations = { | |||
713 | .acquire_dquot = ext3_acquire_dquot, | 713 | .acquire_dquot = ext3_acquire_dquot, |
714 | .release_dquot = ext3_release_dquot, | 714 | .release_dquot = ext3_release_dquot, |
715 | .mark_dirty = ext3_mark_dquot_dirty, | 715 | .mark_dirty = ext3_mark_dquot_dirty, |
716 | .write_info = ext3_write_info | 716 | .write_info = ext3_write_info, |
717 | .alloc_dquot = dquot_alloc, | ||
718 | .destroy_dquot = dquot_destroy, | ||
717 | }; | 719 | }; |
718 | 720 | ||
719 | static struct quotactl_ops ext3_qctl_operations = { | 721 | static struct quotactl_ops ext3_qctl_operations = { |
@@ -1035,8 +1037,7 @@ static int parse_options (char *options, struct super_block *sb, | |||
1035 | case Opt_grpjquota: | 1037 | case Opt_grpjquota: |
1036 | qtype = GRPQUOTA; | 1038 | qtype = GRPQUOTA; |
1037 | set_qf_name: | 1039 | set_qf_name: |
1038 | if ((sb_any_quota_enabled(sb) || | 1040 | if (sb_any_quota_loaded(sb) && |
1039 | sb_any_quota_suspended(sb)) && | ||
1040 | !sbi->s_qf_names[qtype]) { | 1041 | !sbi->s_qf_names[qtype]) { |
1041 | printk(KERN_ERR | 1042 | printk(KERN_ERR |
1042 | "EXT3-fs: Cannot change journaled " | 1043 | "EXT3-fs: Cannot change journaled " |
@@ -1075,8 +1076,7 @@ set_qf_name: | |||
1075 | case Opt_offgrpjquota: | 1076 | case Opt_offgrpjquota: |
1076 | qtype = GRPQUOTA; | 1077 | qtype = GRPQUOTA; |
1077 | clear_qf_name: | 1078 | clear_qf_name: |
1078 | if ((sb_any_quota_enabled(sb) || | 1079 | if (sb_any_quota_loaded(sb) && |
1079 | sb_any_quota_suspended(sb)) && | ||
1080 | sbi->s_qf_names[qtype]) { | 1080 | sbi->s_qf_names[qtype]) { |
1081 | printk(KERN_ERR "EXT3-fs: Cannot change " | 1081 | printk(KERN_ERR "EXT3-fs: Cannot change " |
1082 | "journaled quota options when " | 1082 | "journaled quota options when " |
@@ -1095,8 +1095,7 @@ clear_qf_name: | |||
1095 | case Opt_jqfmt_vfsv0: | 1095 | case Opt_jqfmt_vfsv0: |
1096 | qfmt = QFMT_VFS_V0; | 1096 | qfmt = QFMT_VFS_V0; |
1097 | set_qf_format: | 1097 | set_qf_format: |
1098 | if ((sb_any_quota_enabled(sb) || | 1098 | if (sb_any_quota_loaded(sb) && |
1099 | sb_any_quota_suspended(sb)) && | ||
1100 | sbi->s_jquota_fmt != qfmt) { | 1099 | sbi->s_jquota_fmt != qfmt) { |
1101 | printk(KERN_ERR "EXT3-fs: Cannot change " | 1100 | printk(KERN_ERR "EXT3-fs: Cannot change " |
1102 | "journaled quota options when " | 1101 | "journaled quota options when " |
@@ -1115,8 +1114,7 @@ set_qf_format: | |||
1115 | set_opt(sbi->s_mount_opt, GRPQUOTA); | 1114 | set_opt(sbi->s_mount_opt, GRPQUOTA); |
1116 | break; | 1115 | break; |
1117 | case Opt_noquota: | 1116 | case Opt_noquota: |
1118 | if (sb_any_quota_enabled(sb) || | 1117 | if (sb_any_quota_loaded(sb)) { |
1119 | sb_any_quota_suspended(sb)) { | ||
1120 | printk(KERN_ERR "EXT3-fs: Cannot change quota " | 1118 | printk(KERN_ERR "EXT3-fs: Cannot change quota " |
1121 | "options when quota turned on.\n"); | 1119 | "options when quota turned on.\n"); |
1122 | return 0; | 1120 | return 0; |