|
@@ -305,7 +305,7 @@ static int finish_unfinished(struct super_block *s)
|
|
|
/* Turn quotas off */
|
|
|
for (i = 0; i < MAXQUOTAS; i++) {
|
|
|
if (sb_dqopt(s)->files[i])
|
|
|
- vfs_quota_off(s, i, 0);
|
|
|
+ vfs_quota_off(s, i);
|
|
|
}
|
|
|
if (ms_active_set)
|
|
|
/* Restore the flag back */
|
|
@@ -622,7 +622,7 @@ static int reiserfs_acquire_dquot(struct dquot *);
|
|
|
static int reiserfs_release_dquot(struct dquot *);
|
|
|
static int reiserfs_mark_dquot_dirty(struct dquot *);
|
|
|
static int reiserfs_write_info(struct super_block *, int);
|
|
|
-static int reiserfs_quota_on(struct super_block *, int, int, char *, int);
|
|
|
+static int reiserfs_quota_on(struct super_block *, int, int, char *);
|
|
|
|
|
|
static const struct dquot_operations reiserfs_quota_operations = {
|
|
|
.write_dquot = reiserfs_write_dquot,
|
|
@@ -2038,7 +2038,7 @@ static int reiserfs_quota_on_mount(struct super_block *sb, int type)
|
|
|
* Standard function to be called on quota_on
|
|
|
*/
|
|
|
static int reiserfs_quota_on(struct super_block *sb, int type, int format_id,
|
|
|
- char *name, int remount)
|
|
|
+ char *name)
|
|
|
{
|
|
|
int err;
|
|
|
struct path path;
|
|
@@ -2047,9 +2047,7 @@ static int reiserfs_quota_on(struct super_block *sb, int type, int format_id,
|
|
|
|
|
|
if (!(REISERFS_SB(sb)->s_mount_opt & (1 << REISERFS_QUOTA)))
|
|
|
return -EINVAL;
|
|
|
- /* No more checks needed? Path and format_id are bogus anyway... */
|
|
|
- if (remount)
|
|
|
- return vfs_quota_on(sb, type, format_id, name, 1);
|
|
|
+
|
|
|
err = kern_path(name, LOOKUP_FOLLOW, &path);
|
|
|
if (err)
|
|
|
return err;
|