linux-nonfh-cache-file-handling-20081130
authorAndrew Deason <adeason@sinenomine.net>
Sun, 30 Nov 2008 20:17:13 +0000 (20:17 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sun, 30 Nov 2008 20:17:13 +0000 (20:17 +0000)
LICENSE IPL10
FIXES 123771

go back to referencing f.inode and not ainode when not using the fh cachefiles.
put back the dcache reference again.

src/afs/afs_dcache.c

index 68cf6f7..90b3c4b 100644 (file)
@@ -3356,6 +3356,7 @@ afs_InitCacheFile(char *afile, ino_t ainode)
         tdc->f.fh_type = osi_get_fh(filevp, &tdc->f.fh, &max_len);
 #else
         tdc->f.inode = VTOI(filevp->d_inode)->i_number;
+       dput(filevp);
 #endif
 #else
        tdc->f.inode = afs_vnodeToInumber(filevp);
@@ -3370,7 +3371,7 @@ afs_InitCacheFile(char *afile, ino_t ainode)
 #if defined(LINUX_USE_FH)
     tfile = osi_UFSOpen_fh(&tdc->f.fh, tdc->f.fh_type);
 #else
-    tfile = osi_UFSOpen(ainode);
+    tfile = osi_UFSOpen(tdc->f.inode);
 #endif
     code = afs_osi_Stat(tfile, &tstat);
     if (code)