aboutsummaryrefslogtreecommitdiffstats
path: root/fs/quota/dquot.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-05-19 07:16:43 -0400
committerJan Kara <jack@suse.cz>2010-05-24 08:09:12 -0400
commit307ae18a56e5b706056a2050d52e8cc01b5171c0 (patch)
treec4efc57bb8f0fd1d2aa9e416d81c0c7ba87aaf22 /fs/quota/dquot.c
parente0ccfd959cd8907bcb66cc2042e0f4fd7fcbff2b (diff)
quota: drop remount argument to ->quota_on and ->quota_off
Remount handling has fully moved into the filesystem, so all this is superflous now. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz>
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);