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/ext4/super.c | |
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/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index fb1e191d0fa9..08d31101eb05 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -3631,11 +3631,9 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data) | |||
3631 | } | 3631 | } |
3632 | 3632 | ||
3633 | if (*flags & MS_RDONLY) { | 3633 | if (*flags & MS_RDONLY) { |
3634 | err = vfs_dq_off(sb, 1); | 3634 | err = dquot_suspend(sb, -1); |
3635 | if (err < 0 && err != -ENOSYS) { | 3635 | if (err < 0) |
3636 | err = -EBUSY; | ||
3637 | goto restore_opts; | 3636 | goto restore_opts; |
3638 | } | ||
3639 | 3637 | ||
3640 | /* | 3638 | /* |
3641 | * First of all, the unconditional stuff we have to do | 3639 | * First of all, the unconditional stuff we have to do |
@@ -3722,7 +3720,7 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data) | |||
3722 | unlock_super(sb); | 3720 | unlock_super(sb); |
3723 | unlock_kernel(); | 3721 | unlock_kernel(); |
3724 | if (enable_quota) | 3722 | if (enable_quota) |
3725 | vfs_dq_quota_on_remount(sb); | 3723 | dquot_resume(sb, -1); |
3726 | return 0; | 3724 | return 0; |
3727 | 3725 | ||
3728 | restore_opts: | 3726 | restore_opts: |