From 4db6293a06ff573eb650cbf9bbf53440a7ee83a2 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Sun, 30 Nov 2008 20:17:13 +0000 Subject: [PATCH] linux-nonfh-cache-file-handling-20081130 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/afs/afs_dcache.c b/src/afs/afs_dcache.c index 68cf6f75f..90b3c4bea 100644 --- a/src/afs/afs_dcache.c +++ b/src/afs/afs_dcache.c @@ -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) -- 2.39.5