diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-05-19 07:16:43 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-05-24 08:09:12 -0400 |
commit | 307ae18a56e5b706056a2050d52e8cc01b5171c0 (patch) | |
tree | c4efc57bb8f0fd1d2aa9e416d81c0c7ba87aaf22 /fs/quota | |
parent | e0ccfd959cd8907bcb66cc2042e0f4fd7fcbff2b (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')
-rw-r--r-- | fs/quota/dquot.c | 8 | ||||
-rw-r--r-- | fs/quota/quota.c | 4 |
2 files changed, 4 insertions, 8 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 | } |
1998 | EXPORT_SYMBOL(dquot_disable); | 1998 | EXPORT_SYMBOL(dquot_disable); |
1999 | 1999 | ||
2000 | int vfs_quota_off(struct super_block *sb, int type, int remount) | 2000 | int 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 | } |
2176 | EXPORT_SYMBOL(vfs_quota_on_path); | 2175 | EXPORT_SYMBOL(vfs_quota_on_path); |
2177 | 2176 | ||
2178 | int vfs_quota_on(struct super_block *sb, int type, int format_id, char *name, | 2177 | int 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); |
diff --git a/fs/quota/quota.c b/fs/quota/quota.c index ce3dfd066f59..b299961e1edb 100644 --- a/fs/quota/quota.c +++ b/fs/quota/quota.c | |||
@@ -73,7 +73,7 @@ static int quota_quotaon(struct super_block *sb, int type, int cmd, qid_t id, | |||
73 | if (IS_ERR(pathname)) | 73 | if (IS_ERR(pathname)) |
74 | return PTR_ERR(pathname); | 74 | return PTR_ERR(pathname); |
75 | if (sb->s_qcop->quota_on) | 75 | if (sb->s_qcop->quota_on) |
76 | ret = sb->s_qcop->quota_on(sb, type, id, pathname, 0); | 76 | ret = sb->s_qcop->quota_on(sb, type, id, pathname); |
77 | putname(pathname); | 77 | putname(pathname); |
78 | return ret; | 78 | return ret; |
79 | } | 79 | } |
@@ -260,7 +260,7 @@ static int do_quotactl(struct super_block *sb, int type, int cmd, qid_t id, | |||
260 | case Q_QUOTAOFF: | 260 | case Q_QUOTAOFF: |
261 | if (!sb->s_qcop->quota_off) | 261 | if (!sb->s_qcop->quota_off) |
262 | return -ENOSYS; | 262 | return -ENOSYS; |
263 | return sb->s_qcop->quota_off(sb, type, 0); | 263 | return sb->s_qcop->quota_off(sb, type); |
264 | case Q_GETFMT: | 264 | case Q_GETFMT: |
265 | return quota_getfmt(sb, type, addr); | 265 | return quota_getfmt(sb, type, addr); |
266 | case Q_GETINFO: | 266 | case Q_GETINFO: |