linux-dynamic-inodes-20050710
[openafs.git] / src / afs / VNOPS / afs_vnop_attrs.c
index 84fd3f2..8c8a722 100644 (file)
@@ -177,10 +177,6 @@ afs_CopyOutAttrs(register struct vcache *avc, register struct vattr *attrs)
 #endif
 #endif /* ! AFS_OSF_ENV && !AFS_DARWIN_ENV && !AFS_XBSD_ENV */
 
-#ifdef AFS_LINUX22_ENV
-    /* And linux has its own stash as well. */
-    vattr2inode(AFSTOV(avc), attrs);
-#endif
     return 0;
 }
 
@@ -297,8 +293,8 @@ afs_getattr(OSI_VC_DECL(avc), struct vattr *attrs, struct AFS_UCRED *acred)
                     * confuses getwd()... */
 #ifdef AFS_LINUX22_ENV
                    if (avc == afs_globalVp) {
-                       struct inode *ip = avc->v.i_sb->s_root->d_inode;
-                       attrs->va_nodeid = ip->i_ino;
+                       struct inode *ip = AFSTOV(avc)->i_sb->s_root->d_inode;
+                       attrs->va_nodeid = ip->i_ino;   /* VTOI()? */
                    }
 #else
                    if (AFSTOV(avc)->v_flag & VROOT) {