kernel/sysrq, watchdog, sched/core: Reset watchdog on all CPUs while processing sysrq-w
[pandora-kernel.git] / fs / ext3 / ialloc.c
index 5c866e0..adae962 100644 (file)
@@ -525,8 +525,12 @@ got:
        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++;