aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 93a7e746f425..e3b3483b600d 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3040,8 +3040,14 @@ static int ext4_dquot_drop(struct inode *inode)
3040 3040
3041 /* We may delete quota structure so we need to reserve enough blocks */ 3041 /* We may delete quota structure so we need to reserve enough blocks */
3042 handle = ext4_journal_start(inode, 2*EXT4_QUOTA_DEL_BLOCKS(inode->i_sb)); 3042 handle = ext4_journal_start(inode, 2*EXT4_QUOTA_DEL_BLOCKS(inode->i_sb));
3043 if (IS_ERR(handle)) 3043 if (IS_ERR(handle)) {
3044 /*
3045 * We call dquot_drop() anyway to at least release references
3046 * to quota structures so that umount does not hang.
3047 */
3048 dquot_drop(inode);
3044 return PTR_ERR(handle); 3049 return PTR_ERR(handle);
3050 }
3045 ret = dquot_drop(inode); 3051 ret = dquot_drop(inode);
3046 err = ext4_journal_stop(handle); 3052 err = ext4_journal_stop(handle);
3047 if (!ret) 3053 if (!ret)