DEVEL15-aix-dont-use-root-vfs-for-anything-20070815
authorDerrick Brashear <shadow@dementia.org>
Thu, 16 Aug 2007 04:52:33 +0000 (04:52 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 16 Aug 2007 04:52:33 +0000 (04:52 +0000)
the cache may not be in /; we basically never need rootvfs

(cherry picked from commit 25ace7c2c79705a59be4aded829aaf8d1dc003e2)

src/afs/AIX/osi_file.c
src/afs/AIX/osi_inode.c

index a256240..97e2958 100644 (file)
@@ -30,7 +30,6 @@ osi_UFSOpen(afs_int32 ainode)
 {
     struct inode *ip;
     register struct osi_file *afile = NULL;
-    extern struct vfs *rootvfs;
     struct vnode *vp = NULL;
     extern int cacheDiskType;
     afs_int32 code = 0;
@@ -48,7 +47,7 @@ osi_UFSOpen(afs_int32 ainode)
     afile = (struct osi_file *)osi_AllocSmallSpace(sizeof(struct osi_file));
     setuerror(0);
     AFS_GUNLOCK();
-    ip = (struct inode *)igetinode((dev_t) cacheDev.dev, rootvfs,
+    ip = (struct inode *)igetinode((dev_t) cacheDev.dev, afs_cacheVfsp,
                                   (ino_t) ainode, &vp, &dummy);
     AFS_GLOCK();
     if (getuerror()) {
index b8377bc..e8a4cbb 100644 (file)
@@ -262,7 +262,6 @@ SYSENT(icreate, (dev, near_inode, param1, param2, param3, param4),)
     struct inode *ip, *newip, *pip;
     register int err, rval1, rc = 0;
     struct vnode *vp = NULL;
-    extern struct vfs *rootvfs;
     register struct vfs *vfsp;
     struct vfs *nvfsp = NULL;
     char error;