diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 3c0cb33e0f..ae0513c691 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -1555,7 +1555,9 @@ afs_linux_lookup(struct inode *dip, struct dentry *dp) d_prune_aliases(ip); #ifdef STRUCT_DENTRY_OPERATIONS_HAS_D_AUTOMOUNT - ip->i_flags |= S_AUTOMOUNT; + /* Only needed if this is a volume root */ + if (vcp->mvstat == 2) + ip->i_flags |= S_AUTOMOUNT; #endif } /*