From: Jan Kara Date: Wed, 27 Jul 2005 18:43:39 +0000 (-0700) Subject: [PATCH] ext2: drop quota reference before releasing inode X-Git-Tag: v2.6.13-rc4~25^2~153 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c7e9a52ef0089492bba457dfb8eba1a54e19f24a;p=linux-2.6-omap-h63xx.git [PATCH] ext2: drop quota reference before releasing inode We must drop references to quota structures before releasing the inode. Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index 77e05914921..161f156d98c 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c @@ -612,6 +612,7 @@ got: err = ext2_init_acl(inode, dir); if (err) { DQUOT_FREE_INODE(inode); + DQUOT_DROP(inode); goto fail2; } mark_inode_dirty(inode);