MFC (by obrien)

| Ensure the full value is written into inode variables.
|
| PR:             85503
| Submitted by:   Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
|
| Revision  Changes    Path
| 1.89      +2 -2      src/sys/fs/msdosfs/msdosfs_denode.c

Approved by:	re (scottl)
This commit is contained in:
delphij 2005-10-09 03:33:52 +00:00
parent be43bdee0e
commit 7c26851aa1

View File

@ -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);
}