From 7c26851aa1e135e0ad10fbf620ca5594043db467 Mon Sep 17 00:00:00 2001 From: delphij Date: Sun, 9 Oct 2005 03:33:52 +0000 Subject: [PATCH] MFC (by obrien) | Ensure the full value is written into inode variables. | | PR: 85503 | Submitted by: Dmitry Pryanishnikov | | Revision Changes Path | 1.89 +2 -2 src/sys/fs/msdosfs/msdosfs_denode.c Approved by: re (scottl) --- sys/fs/msdosfs/msdosfs_denode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/fs/msdosfs/msdosfs_denode.c b/sys/fs/msdosfs/msdosfs_denode.c index af6304cbdb86..449d3dd66a62 100644 --- a/sys/fs/msdosfs/msdosfs_denode.c +++ b/sys/fs/msdosfs/msdosfs_denode.c @@ -131,7 +131,7 @@ deget(pmp, dirclust, diroffset, depp) * entry that represented the file happens to be reused while the * deleted file is still open. */ - inode = pmp->pm_bpcluster * dirclust + diroffset; + inode = (uint64_t)pmp->pm_bpcluster * dirclust + diroffset; error = vfs_hash_get(mntp, inode, LK_EXCLUSIVE, curthread, &nvp, de_vncmpf, &inode); @@ -527,7 +527,7 @@ reinsert(dep) return; #endif vp = DETOV(dep); - dep->de_inode = dep->de_pmp->pm_bpcluster * dep->de_dirclust + + dep->de_inode = (uint64_t)dep->de_pmp->pm_bpcluster * dep->de_dirclust + dep->de_diroffset; vfs_hash_rehash(vp, dep->de_inode); }