|
@@ -750,7 +750,7 @@ static int ext3_release_dquot(struct dquot *dquot);
|
|
static int ext3_mark_dquot_dirty(struct dquot *dquot);
|
|
static int ext3_mark_dquot_dirty(struct dquot *dquot);
|
|
static int ext3_write_info(struct super_block *sb, int type);
|
|
static int ext3_write_info(struct super_block *sb, int type);
|
|
static int ext3_quota_on(struct super_block *sb, int type, int format_id,
|
|
static int ext3_quota_on(struct super_block *sb, int type, int format_id,
|
|
- char *path, int remount);
|
|
|
|
|
|
+ char *path);
|
|
static int ext3_quota_on_mount(struct super_block *sb, int type);
|
|
static int ext3_quota_on_mount(struct super_block *sb, int type);
|
|
static ssize_t ext3_quota_read(struct super_block *sb, int type, char *data,
|
|
static ssize_t ext3_quota_read(struct super_block *sb, int type, char *data,
|
|
size_t len, loff_t off);
|
|
size_t len, loff_t off);
|
|
@@ -1529,7 +1529,7 @@ static void ext3_orphan_cleanup (struct super_block * sb,
|
|
/* Turn quotas off */
|
|
/* Turn quotas off */
|
|
for (i = 0; i < MAXQUOTAS; i++) {
|
|
for (i = 0; i < MAXQUOTAS; i++) {
|
|
if (sb_dqopt(sb)->files[i])
|
|
if (sb_dqopt(sb)->files[i])
|
|
- vfs_quota_off(sb, i, 0);
|
|
|
|
|
|
+ vfs_quota_off(sb, i);
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
sb->s_flags = s_flags; /* Restore MS_RDONLY status */
|
|
sb->s_flags = s_flags; /* Restore MS_RDONLY status */
|
|
@@ -2870,16 +2870,13 @@ static int ext3_quota_on_mount(struct super_block *sb, int type)
|
|
* Standard function to be called on quota_on
|
|
* Standard function to be called on quota_on
|
|
*/
|
|
*/
|
|
static int ext3_quota_on(struct super_block *sb, int type, int format_id,
|
|
static int ext3_quota_on(struct super_block *sb, int type, int format_id,
|
|
- char *name, int remount)
|
|
|
|
|
|
+ char *name)
|
|
{
|
|
{
|
|
int err;
|
|
int err;
|
|
struct path path;
|
|
struct path path;
|
|
|
|
|
|
if (!test_opt(sb, QUOTA))
|
|
if (!test_opt(sb, QUOTA))
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
- /* When remounting, no checks are needed and in fact, name is NULL */
|
|
|
|
- if (remount)
|
|
|
|
- return vfs_quota_on(sb, type, format_id, name, remount);
|
|
|
|
|
|
|
|
err = kern_path(name, LOOKUP_FOLLOW, &path);
|
|
err = kern_path(name, LOOKUP_FOLLOW, &path);
|
|
if (err)
|
|
if (err)
|