aboutsummaryrefslogtreecommitdiffstats
path: root/fs/quota/dquot.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/quota/dquot.c')
-rw-r--r--fs/quota/dquot.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index cf972283e474..b84422657f6d 100644
--- a/fs/quota/dquot.c
+++ b/fs/quota/dquot.c
@@ -1997,9 +1997,8 @@ put_inodes:
1997} 1997}
1998EXPORT_SYMBOL(dquot_disable); 1998EXPORT_SYMBOL(dquot_disable);
1999 1999
2000int vfs_quota_off(struct super_block *sb, int type, int remount) 2000int vfs_quota_off(struct super_block *sb, int type)
2001{ 2001{
2002 BUG_ON(remount);
2003 return dquot_disable(sb, type, 2002 return dquot_disable(sb, type,
2004 DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED); 2003 DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED);
2005} 2004}
@@ -2175,14 +2174,11 @@ int vfs_quota_on_path(struct super_block *sb, int type, int format_id,
2175} 2174}
2176EXPORT_SYMBOL(vfs_quota_on_path); 2175EXPORT_SYMBOL(vfs_quota_on_path);
2177 2176
2178int vfs_quota_on(struct super_block *sb, int type, int format_id, char *name, 2177int vfs_quota_on(struct super_block *sb, int type, int format_id, char *name)
2179 int remount)
2180{ 2178{
2181 struct path path; 2179 struct path path;
2182 int error; 2180 int error;
2183 2181
2184 BUG_ON(remount);
2185
2186 error = kern_path(name, LOOKUP_FOLLOW, &path); 2182 error = kern_path(name, LOOKUP_FOLLOW, &path);
2187 if (!error) { 2183 if (!error) {
2188 error = vfs_quota_on_path(sb, type, format_id, &path); 2184 error = vfs_quota_on_path(sb, type, format_id, &path);