Commit ee0d5ffe authored by Jan Kara's avatar Jan Kara Committed by Mark Fasheh

ext3: Use sb_any_quota_loaded() instead of sb_any_quota_enabled()

Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent f55abc0f
...@@ -1035,8 +1035,7 @@ static int parse_options (char *options, struct super_block *sb, ...@@ -1035,8 +1035,7 @@ static int parse_options (char *options, struct super_block *sb,
case Opt_grpjquota: case Opt_grpjquota:
qtype = GRPQUOTA; qtype = GRPQUOTA;
set_qf_name: set_qf_name:
if ((sb_any_quota_enabled(sb) || if (sb_any_quota_loaded(sb) &&
sb_any_quota_suspended(sb)) &&
!sbi->s_qf_names[qtype]) { !sbi->s_qf_names[qtype]) {
printk(KERN_ERR printk(KERN_ERR
"EXT3-fs: Cannot change journaled " "EXT3-fs: Cannot change journaled "
...@@ -1075,8 +1074,7 @@ set_qf_name: ...@@ -1075,8 +1074,7 @@ set_qf_name:
case Opt_offgrpjquota: case Opt_offgrpjquota:
qtype = GRPQUOTA; qtype = GRPQUOTA;
clear_qf_name: clear_qf_name:
if ((sb_any_quota_enabled(sb) || if (sb_any_quota_loaded(sb) &&
sb_any_quota_suspended(sb)) &&
sbi->s_qf_names[qtype]) { sbi->s_qf_names[qtype]) {
printk(KERN_ERR "EXT3-fs: Cannot change " printk(KERN_ERR "EXT3-fs: Cannot change "
"journaled quota options when " "journaled quota options when "
...@@ -1095,8 +1093,7 @@ clear_qf_name: ...@@ -1095,8 +1093,7 @@ clear_qf_name:
case Opt_jqfmt_vfsv0: case Opt_jqfmt_vfsv0:
qfmt = QFMT_VFS_V0; qfmt = QFMT_VFS_V0;
set_qf_format: set_qf_format:
if ((sb_any_quota_enabled(sb) || if (sb_any_quota_loaded(sb) &&
sb_any_quota_suspended(sb)) &&
sbi->s_jquota_fmt != qfmt) { sbi->s_jquota_fmt != qfmt) {
printk(KERN_ERR "EXT3-fs: Cannot change " printk(KERN_ERR "EXT3-fs: Cannot change "
"journaled quota options when " "journaled quota options when "
...@@ -1115,8 +1112,7 @@ set_qf_format: ...@@ -1115,8 +1112,7 @@ set_qf_format:
set_opt(sbi->s_mount_opt, GRPQUOTA); set_opt(sbi->s_mount_opt, GRPQUOTA);
break; break;
case Opt_noquota: case Opt_noquota:
if (sb_any_quota_enabled(sb) || if (sb_any_quota_loaded(sb)) {
sb_any_quota_suspended(sb)) {
printk(KERN_ERR "EXT3-fs: Cannot change quota " printk(KERN_ERR "EXT3-fs: Cannot change quota "
"options when quota turned on.\n"); "options when quota turned on.\n");
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment