diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index 8d5f6abd3078..1a2df9ab0aac 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: tmpfs_subr.c,v 1.24 2006/10/12 01:32:14 christos Exp $ */ +/* $NetBSD: tmpfs_subr.c,v 1.25 2006/10/30 15:09:47 jmmv Exp $ */ /* * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.24 2006/10/12 01:32:14 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tmpfs_subr.c,v 1.25 2006/10/30 15:09:47 jmmv Exp $"); #include #include @@ -1231,7 +1231,6 @@ tmpfs_itimes(struct vnode *vp, const struct timespec *acc, if ((node->tn_status & (TMPFS_NODE_ACCESSED | TMPFS_NODE_MODIFIED | TMPFS_NODE_CHANGED)) == 0) return; - getnanotime(&now); if (node->tn_status & TMPFS_NODE_ACCESSED) { if (acc == NULL) @@ -1241,6 +1240,7 @@ tmpfs_itimes(struct vnode *vp, const struct timespec *acc, if (node->tn_status & TMPFS_NODE_MODIFIED) { if (mod == NULL) mod = &now; +//printf("vp %p, setting mtime to %ld\n", vp, mod->tv_sec); node->tn_mtime = *mod; } if (node->tn_status & TMPFS_NODE_CHANGED) diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 1759421bade6..67a22de3afc7 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: tmpfs_vnops.c,v 1.25 2006/07/23 22:06:10 ad Exp $ */ +/* $NetBSD: tmpfs_vnops.c,v 1.26 2006/10/30 15:09:47 jmmv Exp $ */ /* * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.25 2006/07/23 22:06:10 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tmpfs_vnops.c,v 1.26 2006/10/30 15:09:47 jmmv Exp $"); #include #include @@ -928,7 +928,7 @@ tmpfs_rename(void *v) memcpy(newname, tcnp->cn_nameptr, tcnp->cn_namelen); de->td_name = newname; - fnode->tn_status |= TMPFS_NODE_MODIFIED; + tdnode->tn_status |= TMPFS_NODE_MODIFIED; } /* If we are overwriting an entry, we have to remove the old one