Skip to content

Commit

Permalink
[PATCH] ext3: drop quota references 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 c7e9a52 commit ab6862e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ext3/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,14 @@ struct inode *ext3_new_inode(handle_t *handle, struct inode * dir, int mode)
err = ext3_init_acl(handle, inode, dir);
if (err) {
DQUOT_FREE_INODE(inode);
DQUOT_DROP(inode);
goto fail2;
}
err = ext3_mark_inode_dirty(handle, inode);
if (err) {
ext3_std_error(sb, err);
DQUOT_FREE_INODE(inode);
DQUOT_DROP(inode);
goto fail2;
}

Expand Down

0 comments on commit ab6862e

Please sign in to comment.