[PATCH v2 12/17] afs: Fix double netfs initialisation in afs_root_iget()

From: David Howells

Date: Thu Jun 18 2026 - 03:51:24 EST


Fix afs_root_iget() to leave initialisation of the netfs_inode part of the
afs_vnode to afs_inode_init_from_status().

Fixes: bc899ee1c898 ("netfs: Add a netfs inode context")
Closes: https://sashiko.dev/#/patchset/20260609081738.770127-1-dhowells%40redhat.com
Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
cc: Marc Dionne <marc.dionne@xxxxxxxxxxxx>
cc: linux-afs@xxxxxxxxxxxxxxxxxxx
---
fs/afs/inode.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/fs/afs/inode.c b/fs/afs/inode.c
index 21ac098d03ef..c8df1764d414 100644
--- a/fs/afs/inode.c
+++ b/fs/afs/inode.c
@@ -565,7 +565,6 @@ struct inode *afs_root_iget(struct super_block *sb, struct key *key)

vnode = AFS_FS_I(inode);
vnode->cb_v_check = atomic_read(&as->volume->cb_v_break);
- afs_set_netfs_context(vnode);

op = afs_alloc_operation(key, as->volume);
if (IS_ERR(op)) {