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>
This commit is contained in:
committed by
Jan Kara
parent
c79d967de3
commit
0f0dd62fdd
@@ -590,15 +590,13 @@ static int udf_remount_fs(struct super_block *sb, int *flags, char *options)
|
||||
if (*flags & MS_RDONLY) {
|
||||
udf_close_lvid(sb);
|
||||
|
||||
error = vfs_dq_off(sb, 1);
|
||||
if (error < 0 && error != -ENOSYS)
|
||||
error = -EBUSY;
|
||||
error = dquot_suspend(sb, -1);
|
||||
} else {
|
||||
udf_open_lvid(sb);
|
||||
|
||||
/* mark the fs r/w for quota activity */
|
||||
sb->s_flags &= ~MS_RDONLY;
|
||||
vfs_dq_quota_on_remount(sb);
|
||||
dquot_resume(sb, -1);
|
||||
}
|
||||
|
||||
out_unlock:
|
||||
|
Reference in New Issue
Block a user