diff options
Diffstat (limited to 'fs/ext3')
-rw-r--r-- | fs/ext3/ialloc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/ext3/ialloc.c b/fs/ext3/ialloc.c index 5c866e06e7ab..adae962ee957 100644 --- a/fs/ext3/ialloc.c +++ b/fs/ext3/ialloc.c | |||
@@ -525,8 +525,12 @@ got: | |||
525 | if (IS_DIRSYNC(inode)) | 525 | if (IS_DIRSYNC(inode)) |
526 | handle->h_sync = 1; | 526 | handle->h_sync = 1; |
527 | if (insert_inode_locked(inode) < 0) { | 527 | if (insert_inode_locked(inode) < 0) { |
528 | err = -EINVAL; | 528 | /* |
529 | goto fail_drop; | 529 | * Likely a bitmap corruption causing inode to be allocated |
530 | * twice. | ||
531 | */ | ||
532 | err = -EIO; | ||
533 | goto fail; | ||
530 | } | 534 | } |
531 | spin_lock(&sbi->s_next_gen_lock); | 535 | spin_lock(&sbi->s_next_gen_lock); |
532 | inode->i_generation = sbi->s_next_generation++; | 536 | inode->i_generation = sbi->s_next_generation++; |