From: Daria Brashear Date: Wed, 14 Jan 2015 15:22:25 +0000 (-0500) Subject: LINUX: ensure mvid is set on root vnodes X-Git-Tag: upstream/1.8.0_pre1^2~369 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=69e84bd8a2ccc6065c3a06b7239c855207b92e4d;p=packages%2Fo%2Fopenafs.git LINUX: ensure mvid is set on root vnodes it shoudn't happen that we aren't setting mvid on root vnodes, so assert so we notice if the invariant is violated Change-Id: I32c8aa4dced8751d11817d74508b87ff44261837 Reviewed-on: http://gerrit.openafs.org/11669 Reviewed-by: Benjamin Kaduk Reviewed-by: Chas Williams - CONTRACTOR Tested-by: BuildBot --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index de2af8254..513b96231 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -1197,6 +1197,8 @@ afs_linux_dentry_revalidate(struct dentry *dp, int flags) goto bad_dentry; } } + } else if (vcp->mvstat == 2 && *dp->d_name.name != '/') { + osi_Assert(vcp->mvid != NULL); } }