diff options
author | Jan Kara <jack@suse.cz> | 2008-08-20 12:14:35 -0400 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-01-05 11:36:56 -0500 |
commit | 17bd13b31ce4fe7f789d8848e8cbc8cb42b10544 (patch) | |
tree | ced03fa069a1493421b6c0b0c11e5a163b5dbed6 /fs | |
parent | ee0d5ffe0da2aa992004447113e28622621a983f (diff) |
ext4: Use sb_any_quota_loaded() instead of sb_any_quota_enabled()
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/super.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 04158ad74dbb..49fcf8864e76 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -1142,8 +1142,7 @@ static int parse_options(char *options, struct super_block *sb, | |||
1142 | case Opt_grpjquota: | 1142 | case Opt_grpjquota: |
1143 | qtype = GRPQUOTA; | 1143 | qtype = GRPQUOTA; |
1144 | set_qf_name: | 1144 | set_qf_name: |
1145 | if ((sb_any_quota_enabled(sb) || | 1145 | if (sb_any_quota_loaded(sb) && |
1146 | sb_any_quota_suspended(sb)) && | ||
1147 | !sbi->s_qf_names[qtype]) { | 1146 | !sbi->s_qf_names[qtype]) { |
1148 | printk(KERN_ERR | 1147 | printk(KERN_ERR |
1149 | "EXT4-fs: Cannot change journaled " | 1148 | "EXT4-fs: Cannot change journaled " |
@@ -1182,8 +1181,7 @@ set_qf_name: | |||
1182 | case Opt_offgrpjquota: | 1181 | case Opt_offgrpjquota: |
1183 | qtype = GRPQUOTA; | 1182 | qtype = GRPQUOTA; |
1184 | clear_qf_name: | 1183 | clear_qf_name: |
1185 | if ((sb_any_quota_enabled(sb) || | 1184 | if (sb_any_quota_loaded(sb) && |
1186 | sb_any_quota_suspended(sb)) && | ||
1187 | sbi->s_qf_names[qtype]) { | 1185 | sbi->s_qf_names[qtype]) { |
1188 | printk(KERN_ERR "EXT4-fs: Cannot change " | 1186 | printk(KERN_ERR "EXT4-fs: Cannot change " |
1189 | "journaled quota options when " | 1187 | "journaled quota options when " |
@@ -1202,8 +1200,7 @@ clear_qf_name: | |||
1202 | case Opt_jqfmt_vfsv0: | 1200 | case Opt_jqfmt_vfsv0: |
1203 | qfmt = QFMT_VFS_V0; | 1201 | qfmt = QFMT_VFS_V0; |
1204 | set_qf_format: | 1202 | set_qf_format: |
1205 | if ((sb_any_quota_enabled(sb) || | 1203 | if (sb_any_quota_loaded(sb) && |
1206 | sb_any_quota_suspended(sb)) && | ||
1207 | sbi->s_jquota_fmt != qfmt) { | 1204 | sbi->s_jquota_fmt != qfmt) { |
1208 | printk(KERN_ERR "EXT4-fs: Cannot change " | 1205 | printk(KERN_ERR "EXT4-fs: Cannot change " |
1209 | "journaled quota options when " | 1206 | "journaled quota options when " |
@@ -1222,7 +1219,7 @@ set_qf_format: | |||
1222 | set_opt(sbi->s_mount_opt, GRPQUOTA); | 1219 | set_opt(sbi->s_mount_opt, GRPQUOTA); |
1223 | break; | 1220 | break; |
1224 | case Opt_noquota: | 1221 | case Opt_noquota: |
1225 | if (sb_any_quota_enabled(sb)) { | 1222 | if (sb_any_quota_loaded(sb)) { |
1226 | printk(KERN_ERR "EXT4-fs: Cannot change quota " | 1223 | printk(KERN_ERR "EXT4-fs: Cannot change quota " |
1227 | "options when quota turned on.\n"); | 1224 | "options when quota turned on.\n"); |
1228 | return 0; | 1225 | return 0; |