Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7b15a86 authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent d8e78da8
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -69,8 +69,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
	rc = diAlloc(parent, S_ISDIR(mode), inode);
	rc = diAlloc(parent, S_ISDIR(mode), inode);
	if (rc) {
	if (rc) {
		jfs_warn("ialloc: diAlloc returned %d!", rc);
		jfs_warn("ialloc: diAlloc returned %d!", rc);
		if (rc == -EIO)
			make_bad_inode(inode);
		goto fail_put;
		goto fail_put;
	}
	}