Skip to content

Commit c7b15a8

Browse files
author
Al Viro
committed
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>
1 parent d8e78da commit c7b15a8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎fs/jfs/jfs_inode.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode)
6969
rc = diAlloc(parent, S_ISDIR(mode), inode);
7070
if (rc) {
7171
jfs_warn("ialloc: diAlloc returned %d!", rc);
72-
if (rc == -EIO)
73-
make_bad_inode(inode);
7472
goto fail_put;
7573
}
7674

0 commit comments

Comments
 (0)