diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-05-19 07:16:41 -0400 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-05-24 08:06:40 -0400 |
commit | 0f0dd62fddcbd0f6830ed8ef3d3426ccc46b9250 (patch) | |
tree | 295ac31b109f78873cb191867603943d8562ead0 /fs/ext3 | |
parent | c79d967de3741ceb60c5bbbf1b6f97eab9a89838 (diff) |
quota: kill the vfs_dq_off and vfs_dq_quota_on_remount wrappers
Instead of having wrappers in the VFS namespace export the dquot_suspend
and dquot_resume helpers directly. Also rename vfs_quota_disable to
dquot_disable while we're at it.
[Jan Kara: Moved dquot_suspend to quotaops.h and made it inline]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/super.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c index d0f8837b6255..9d5e582b514a 100644 --- a/fs/ext3/super.c +++ b/fs/ext3/super.c | |||
@@ -2598,11 +2598,9 @@ static int ext3_remount (struct super_block * sb, int * flags, char * data) | |||
2598 | } | 2598 | } |
2599 | 2599 | ||
2600 | if (*flags & MS_RDONLY) { | 2600 | if (*flags & MS_RDONLY) { |
2601 | err = vfs_dq_off(sb, 1); | 2601 | err = dquot_suspend(sb, -1); |
2602 | if (err < 0 && err != -ENOSYS) { | 2602 | if (err < 0) |
2603 | err = -EBUSY; | ||
2604 | goto restore_opts; | 2603 | goto restore_opts; |
2605 | } | ||
2606 | 2604 | ||
2607 | /* | 2605 | /* |
2608 | * First of all, the unconditional stuff we have to do | 2606 | * First of all, the unconditional stuff we have to do |
@@ -2672,7 +2670,7 @@ static int ext3_remount (struct super_block * sb, int * flags, char * data) | |||
2672 | unlock_kernel(); | 2670 | unlock_kernel(); |
2673 | 2671 | ||
2674 | if (enable_quota) | 2672 | if (enable_quota) |
2675 | vfs_dq_quota_on_remount(sb); | 2673 | dquot_resume(sb, -1); |
2676 | return 0; | 2674 | return 0; |
2677 | restore_opts: | 2675 | restore_opts: |
2678 | sb->s_flags = old_sb_flags; | 2676 | sb->s_flags = old_sb_flags; |