aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ext3/super.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 770bbb4fa58c..03d5c626c1cd 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -2639,8 +2639,14 @@ static int ext3_dquot_drop(struct inode *inode)
2639 2639
2640 /* We may delete quota structure so we need to reserve enough blocks */ 2640 /* We may delete quota structure so we need to reserve enough blocks */
2641 handle = ext3_journal_start(inode, 2*EXT3_QUOTA_DEL_BLOCKS(inode->i_sb)); 2641 handle = ext3_journal_start(inode, 2*EXT3_QUOTA_DEL_BLOCKS(inode->i_sb));
2642 if (IS_ERR(handle)) 2642 if (IS_ERR(handle)) {
2643 /*
2644 * We call dquot_drop() anyway to at least release references
2645 * to quota structures so that umount does not hang.
2646 */
2647 dquot_drop(inode);
2643 return PTR_ERR(handle); 2648 return PTR_ERR(handle);
2649 }
2644 ret = dquot_drop(inode); 2650 ret = dquot_drop(inode);
2645 err = ext3_journal_stop(handle); 2651 err = ext3_journal_stop(handle);
2646 if (!ret) 2652 if (!ret)