Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9381
b: refs/heads/master
c: dc7b5fd
h: refs/heads/master
i:
  9379: 545dcd3
v: v3
  • Loading branch information
Chris Sykes authored and Linus Torvalds committed Sep 28, 2005
1 parent d92a488 commit beb9306
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ed6c2fb34a1fb493caec8a9644d05bb880a6923
refs/heads/master: dc7b5fd6b0d3beb41f9e5e3a94dd1eadf52209f3
29 changes: 14 additions & 15 deletions trunk/fs/ext3/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,27 +597,22 @@ struct inode *ext3_new_inode(handle_t *handle, struct inode * dir, int mode)

ret = inode;
if(DQUOT_ALLOC_INODE(inode)) {
DQUOT_DROP(inode);
err = -EDQUOT;
goto fail2;
goto fail_drop;
}

err = ext3_init_acl(handle, inode, dir);
if (err) {
DQUOT_FREE_INODE(inode);
DQUOT_DROP(inode);
goto fail2;
}
if (err)
goto fail_free_drop;

err = ext3_init_security(handle,inode, dir);
if (err) {
DQUOT_FREE_INODE(inode);
goto fail2;
}
if (err)
goto fail_free_drop;

err = ext3_mark_inode_dirty(handle, inode);
if (err) {
ext3_std_error(sb, err);
DQUOT_FREE_INODE(inode);
DQUOT_DROP(inode);
goto fail2;
goto fail_free_drop;
}

ext3_debug("allocating inode %lu\n", inode->i_ino);
Expand All @@ -631,7 +626,11 @@ struct inode *ext3_new_inode(handle_t *handle, struct inode * dir, int mode)
brelse(bitmap_bh);
return ret;

fail2:
fail_free_drop:
DQUOT_FREE_INODE(inode);

fail_drop:
DQUOT_DROP(inode);
inode->i_flags |= S_NOQUOTA;
inode->i_nlink = 0;
iput(inode);
Expand Down

0 comments on commit beb9306

Please sign in to comment.