|
@@ -4570,12 +4570,10 @@ static int ext4_quota_on(struct super_block *sb, int type, int format_id,
|
|
|
|
|
|
static int ext4_quota_off(struct super_block *sb, int type)
|
|
|
{
|
|
|
- /* Force all delayed allocation blocks to be allocated */
|
|
|
- if (test_opt(sb, DELALLOC)) {
|
|
|
- down_read(&sb->s_umount);
|
|
|
+ /* Force all delayed allocation blocks to be allocated.
|
|
|
+ * Caller already holds s_umount sem */
|
|
|
+ if (test_opt(sb, DELALLOC))
|
|
|
sync_filesystem(sb);
|
|
|
- up_read(&sb->s_umount);
|
|
|
- }
|
|
|
|
|
|
return dquot_quota_off(sb, type);
|
|
|
}
|