#ifdef AFS_LINUX22_ENV
/* And linux has it's own stash as well. */
- vattr2inode((struct inode*)avc, attrs);
+ vattr2inode(AFSTOV(avc), attrs);
#endif
return 0;
}
attrs->va_nodeid = ip->i_ino;
}
#else
- if (avc->v.v_flag & VROOT) {
- struct vnode *vp = (struct vnode *)avc;
+ if (AFSTOV(avc)->v_flag & VROOT) {
+ struct vnode *vp = AFSTOV(avc);
vp = vp->v_vfsp->vfs_vnodecovered;
if (vp) { /* Ignore weird failures */