diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-06-30 14:32:04 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-08-03 16:03:33 -0400 |
commit | c7b15a8657da7f8d11269c7cc3d8beef10d26b43 (patch) | |
tree | 0c488599125b4b5d9ae0a64055d282b7ad62299e | |
parent | d8e78da8682028ad53d040339a2b9d6fb6092d63 (diff) | |
download | linux-stable-c7b15a8657da7f8d11269c7cc3d8beef10d26b43.tar.gz linux-stable-c7b15a8657da7f8d11269c7cc3d8beef10d26b43.tar.bz2 linux-stable-c7b15a8657da7f8d11269c7cc3d8beef10d26b43.zip |
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>
-rw-r--r-- | fs/jfs/jfs_inode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/jfs/jfs_inode.c b/fs/jfs/jfs_inode.c index 96732c24b054..4572b7cf183d 100644 --- a/fs/jfs/jfs_inode.c +++ b/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; } |