diff options
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/inode.c | 2 | ||||
-rw-r--r-- | fs/ext3/namei.c | 3 | ||||
-rw-r--r-- | fs/ext3/super.c | 16 |
3 files changed, 9 insertions, 12 deletions
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index c4bdccf976b5..5fa453b49a64 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c | |||
@@ -1161,7 +1161,7 @@ static int ext3_write_begin(struct file *file, struct address_space *mapping, | |||
1161 | to = from + len; | 1161 | to = from + len; |
1162 | 1162 | ||
1163 | retry: | 1163 | retry: |
1164 | page = __grab_cache_page(mapping, index); | 1164 | page = grab_cache_page_write_begin(mapping, index, flags); |
1165 | if (!page) | 1165 | if (!page) |
1166 | return -ENOMEM; | 1166 | return -ENOMEM; |
1167 | *pagep = page; | 1167 | *pagep = page; |
diff --git a/fs/ext3/namei.c b/fs/ext3/namei.c index 297ea8dfac7c..1dd2abe6313e 100644 --- a/fs/ext3/namei.c +++ b/fs/ext3/namei.c | |||
@@ -2175,8 +2175,7 @@ retry: | |||
2175 | * We have a transaction open. All is sweetness. It also sets | 2175 | * We have a transaction open. All is sweetness. It also sets |
2176 | * i_size in generic_commit_write(). | 2176 | * i_size in generic_commit_write(). |
2177 | */ | 2177 | */ |
2178 | err = __page_symlink(inode, symname, l, | 2178 | err = __page_symlink(inode, symname, l, 1); |
2179 | mapping_gfp_mask(inode->i_mapping) & ~__GFP_FS); | ||
2180 | if (err) { | 2179 | if (err) { |
2181 | drop_nlink(inode); | 2180 | drop_nlink(inode); |
2182 | unlock_new_inode(inode); | 2181 | unlock_new_inode(inode); |
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; |