Commit bd054167 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ext3 out-of-inodes fix

ext3 will remount the fs readonly if it runs out of inode
space.  It shouldn't do that - it should just return -ENOSPC.
parent 95bd6a79
......@@ -389,7 +389,7 @@ struct inode * ext3_new_inode (handle_t *handle,
err = -ENOSPC;
if (!gdp)
goto fail;
goto out;
err = -EIO;
bitmap_nr = load_inode_bitmap (sb, i);
......@@ -532,9 +532,10 @@ struct inode * ext3_new_inode (handle_t *handle,
return inode;
fail:
ext3_std_error(sb, err);
out:
unlock_super(sb);
iput(inode);
ext3_std_error(sb, err);
return ERR_PTR(err);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment