diff options
Diffstat (limited to 'fs/ufs/super.c')
-rw-r--r-- | fs/ufs/super.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index be1f7b05bc28..495fdc1df7eb 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -1291,11 +1291,11 @@ static int ufs_remount (struct super_block *sb, int *mount_flags, char *data) | |||
1291 | * fs was mouted as rw, remounting ro | 1291 | * fs was mouted as rw, remounting ro |
1292 | */ | 1292 | */ |
1293 | if (*mount_flags & MS_RDONLY) { | 1293 | if (*mount_flags & MS_RDONLY) { |
1294 | err = vfs_dq_off(sb, 1); | 1294 | err = dquot_suspend(sb, -1); |
1295 | if (err < 0 && err != -ENOSYS) { | 1295 | if (err < 0) { |
1296 | unlock_super(sb); | 1296 | unlock_super(sb); |
1297 | unlock_kernel(); | 1297 | unlock_kernel(); |
1298 | return -EBUSY; | 1298 | return err; |
1299 | } | 1299 | } |
1300 | 1300 | ||
1301 | ufs_put_super_internal(sb); | 1301 | ufs_put_super_internal(sb); |
@@ -1343,7 +1343,7 @@ static int ufs_remount (struct super_block *sb, int *mount_flags, char *data) | |||
1343 | unlock_super(sb); | 1343 | unlock_super(sb); |
1344 | unlock_kernel(); | 1344 | unlock_kernel(); |
1345 | if (enable_quota) | 1345 | if (enable_quota) |
1346 | vfs_dq_quota_on_remount(sb); | 1346 | dquot_resume(sb, -1); |
1347 | return 0; | 1347 | return 0; |
1348 | } | 1348 | } |
1349 | 1349 | ||