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 <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
Christoph Hellwig 2010-05-19 07:16:41 -04:00 • committed by Jan Kara
commit 0f0dd62fdd
10 changed files with 85 additions and 90 deletions

View file

@ -1291,11 +1291,11 @@ static int ufs_remount (struct super_block *sb, int *mount_flags, char *data)
* fs was mouted as rw, remounting ro
*/
if (*mount_flags & MS_RDONLY) {
err = vfs_dq_off(sb, 1);
if (err < 0 && err != -ENOSYS) {
err = dquot_suspend(sb, -1);
if (err < 0) {
unlock_super(sb);
unlock_kernel();
return -EBUSY;
return err;
}
ufs_put_super_internal(sb);
@ -1343,7 +1343,7 @@ static int ufs_remount (struct super_block *sb, int *mount_flags, char *data)
unlock_super(sb);
unlock_kernel();
if (enable_quota)
vfs_dq_quota_on_remount(sb);
dquot_resume(sb, -1);
return 0;
}