Merge tag 'kbuild-v5.19-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy...
[linux-2.6-microblaze.git] / fs / afs / super.c
index 7592c0f..1fea195 100644 (file)
@@ -688,13 +688,11 @@ static struct inode *afs_alloc_inode(struct super_block *sb)
        /* Reset anything that shouldn't leak from one inode to the next. */
        memset(&vnode->fid, 0, sizeof(vnode->fid));
        memset(&vnode->status, 0, sizeof(vnode->status));
+       afs_vnode_set_cache(vnode, NULL);
 
        vnode->volume           = NULL;
        vnode->lock_key         = NULL;
        vnode->permit_cache     = NULL;
-#ifdef CONFIG_AFS_FSCACHE
-       vnode->cache            = NULL;
-#endif
 
        vnode->flags            = 1 << AFS_VNODE_UNSET;
        vnode->lock_state       = AFS_VNODE_LOCK_NONE;