Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281449
b: refs/heads/master
c: 1415dd8
h: refs/heads/master
i:
  281447: 2770359
v: v3
  • Loading branch information
Jan Kara committed Jan 9, 2012
1 parent cf4366b commit 0aeb304
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: d03e1292c46721f60830c5d2e334966472002ed0
refs/heads/master: 1415dd8705394399d59a3df1ab48d149e1e41e77
8 changes: 6 additions & 2 deletions trunk/fs/ext3/ialloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,12 @@ struct inode *ext3_new_inode(handle_t *handle, struct inode * dir,
if (IS_DIRSYNC(inode))
handle->h_sync = 1;
if (insert_inode_locked(inode) < 0) {
err = -EINVAL;
goto fail_drop;
/*
* Likely a bitmap corruption causing inode to be allocated
* twice.
*/
err = -EIO;
goto fail;
}
spin_lock(&sbi->s_next_gen_lock);
inode->i_generation = sbi->s_next_generation++;
Expand Down

0 comments on commit 0aeb304

Please sign in to comment.