Message ID | 20180612123840.GJ23785@veci.piliscsaba.redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/inode.c b/fs/inode.c index 0df41bb77e0f..ad03d4abc600 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -1094,12 +1094,14 @@ struct inode *iget5_locked(struct super_block *sb, unsigned long hashval, struct inode *inode = ilookup5(sb, hashval, test, data); if (!inode) { - struct inode *new = new_inode(sb); + struct inode *new = new_inode_pseudo(sb); if (new) { inode = inode_insert5(new, hashval, test, set, data); if (unlikely(inode != new)) - iput(new); + destroy_inode(new); + else + inode_sb_list_add(inode); } } return inode;