aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext4/super.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 45653af88953..ee91e29ddf95 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -4570,12 +4570,10 @@ static int ext4_quota_on(struct super_block *sb, int type, int format_id,
4570 4570
4571static int ext4_quota_off(struct super_block *sb, int type) 4571static int ext4_quota_off(struct super_block *sb, int type)
4572{ 4572{
4573 /* Force all delayed allocation blocks to be allocated */ 4573 /* Force all delayed allocation blocks to be allocated.
4574 if (test_opt(sb, DELALLOC)) { 4574 * Caller already holds s_umount sem */
4575 down_read(&sb->s_umount); 4575 if (test_opt(sb, DELALLOC))
4576 sync_filesystem(sb); 4576 sync_filesystem(sb);
4577 up_read(&sb->s_umount);
4578 }
4579 4577
4580 return dquot_quota_off(sb, type); 4578 return dquot_quota_off(sb, type);
4581} 4579}