瀏覽代碼

jfs: don't bother with make_bad_inode() in ialloc()

We hit that when inumber allocation has failed.  In that case
the in-core inode is not hashed and since its ->i_nlink is 1
the only place where jfs checks is_bad_inode() won't be reached.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 7 年之前
父節點
當前提交
c7b15a8657
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      fs/jfs/jfs_inode.c

+ 0 - 2
fs/jfs/jfs_inode.c

@@ -69,8 +69,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
 	rc = diAlloc(parent, S_ISDIR(mode), inode);
 	if (rc) {
 		jfs_warn("ialloc: diAlloc returned %d!", rc);
-		if (rc == -EIO)
-			make_bad_inode(inode);
 		goto fail_put;
 	}