Skip to content

Commit

Permalink
[PATCH] ext2: drop quota reference before releasing inode
Browse files Browse the repository at this point in the history
We must drop references to quota structures before releasing the inode.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Jul 27, 2005
1 parent b3bb8af commit c7e9a52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext2/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ struct inode *ext2_new_inode(struct inode *dir, int mode)
err = ext2_init_acl(inode, dir);
if (err) {
DQUOT_FREE_INODE(inode);
DQUOT_DROP(inode);
goto fail2;
}
mark_inode_dirty(inode);
Expand Down

0 comments on commit c7e9a52

Please sign in to comment.