summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-06-28 02:34:32 +0000
committerdelphij <delphij@FreeBSD.org>2007-06-28 02:34:32 +0000
commitee97250932c893f15246f2a120888d5e3221c8ec (patch)
tree079bdf4acb65e2752c2f62025d3dd5010f8cd7a4 /sys
parenteedf8bf53d17cf2e4f966b6ea63a96da5c55d478 (diff)
downloadFreeBSD-src-ee97250932c893f15246f2a120888d5e3221c8ec.zip
FreeBSD-src-ee97250932c893f15246f2a120888d5e3221c8ec.tar.gz
Use vfs_timestamp instead of nanotime when obtaining
a timestamp for use with timekeeping. Approved by: re (tmpfs blanket)
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/tmpfs/tmpfs_subr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c
index 739747b..c5c7c85 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.17 2005/12/11 12:24:29 christos Exp $ */
+/* $NetBSD: tmpfs_subr.c,v 1.21 2006/06/07 22:33:39 kardel Exp $ */
/*
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -110,7 +110,7 @@ tmpfs_alloc_node(struct tmpfs_mount *tmp, enum vtype type,
/* Generic initialization. */
nnode->tn_type = type;
- nanotime(&nnode->tn_atime);
+ vfs_timestamp(&nnode->tn_atime);
nnode->tn_birthtime = nnode->tn_ctime = nnode->tn_mtime =
nnode->tn_atime;
nnode->tn_uid = uid;
@@ -414,8 +414,7 @@ unlock:
node->tn_vpstate &= ~TMPFS_VNODE_WANT;
TMPFS_NODE_UNLOCK(node);
wakeup((caddr_t) &node->tn_vpstate);
- }
- else
+ } else
TMPFS_NODE_UNLOCK(node);
out:
OpenPOWER on IntegriCloud