diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-09-07 09:17:05 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-09-07 09:17:05 +0000 |
| commit | 1affa3adc82a89fb52a7ec86ad5caf03a5caf622 (patch) | |
| tree | 7e7bb052b21a301fd0dd0598358f0d815c6f142b /sys/fs | |
| parent | 35f134080f66c7b325d5281467a6ec45d7b443ce (diff) | |
Notes
Diffstat (limited to 'sys/fs')
| -rw-r--r-- | sys/fs/msdosfs/msdosfs_denode.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/sys/fs/msdosfs/msdosfs_denode.c b/sys/fs/msdosfs/msdosfs_denode.c index 6fa69bd01e3a7..cd7f536cc9bb1 100644 --- a/sys/fs/msdosfs/msdosfs_denode.c +++ b/sys/fs/msdosfs/msdosfs_denode.c @@ -76,23 +76,6 @@ static u_long dehash; /* size of hash table - 1 */ static struct mtx dehash_mtx; static int dehash_init; -union _qcvt { - quad_t qcvt; - long val[2]; -}; -#define SETHIGH(q, h) { \ - union _qcvt tmp; \ - tmp.qcvt = (q); \ - tmp.val[_QUAD_HIGHWORD] = (h); \ - (q) = tmp.qcvt; \ -} -#define SETLOW(q, l) { \ - union _qcvt tmp; \ - tmp.qcvt = (q); \ - tmp.val[_QUAD_LOWWORD] = (l); \ - (q) = tmp.qcvt; \ -} - static struct denode * msdosfs_hashget(struct cdev *dev, u_long dirclust, u_long diroff); static void msdosfs_hashins(struct denode *dep); @@ -222,7 +205,6 @@ deget(pmp, dirclust, diroffset, depp) struct vnode *nvp; struct buf *bp; struct thread *td = curthread; /* XXX */ - struct timeval tv; #ifdef MSDOSFS_DEBUG printf("deget(pmp %p, dirclust %lu, diroffset %lx, depp %p)\n", @@ -389,9 +371,8 @@ deget(pmp, dirclust, diroffset, depp) } } else nvp->v_type = VREG; - getmicrouptime(&tv); - SETHIGH(ldep->de_modrev, tv.tv_sec); - SETLOW(ldep->de_modrev, tv.tv_usec * 4294); + + ldep->de_modrev = init_va_filerev(); ldep->de_devvp = pmp->pm_devvp; VREF(ldep->de_devvp); *depp = ldep; |
