Fix out-of-inodes handling Don't consider ENOSPC as a fatal error when allocating an inode. Otherwise running out of inodes marks the fs as having an error, potentially taking the kernel down if we are in panic-on-error fs mode. --- linux-2.4.19-ext3/fs/ext3/ialloc.c.=K0003=.orig Mon Feb 25 19:38:08 2002 +++ linux-2.4.19-ext3/fs/ext3/ialloc.c Fri Oct 11 15:52:01 2002 @@ -392,7 +392,7 @@ err = -ENOSPC; if (!gdp) - goto fail; + goto out; err = -EIO; bitmap_nr = load_inode_bitmap (sb, i); @@ -523,9 +523,10 @@ return inode; fail: + ext3_std_error(sb, err); +out: unlock_super(sb); iput(inode); - ext3_std_error(sb, err); return ERR_PTR(err); }