diff options
author | Xin LI <delphij@FreeBSD.org> | 2007-06-28 02:34:32 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2007-06-28 02:34:32 +0000 |
commit | 8d5892eeabf67745177ba6b4aabcb22577d88e3e (patch) | |
tree | 079bdf4acb65e2752c2f62025d3dd5010f8cd7a4 /sys/fs/tmpfs | |
parent | 5ff9b9158f37b668d12a2352a52417035f2d69c3 (diff) | |
download | src-8d5892eeabf67745177ba6b4aabcb22577d88e3e.tar.gz src-8d5892eeabf67745177ba6b4aabcb22577d88e3e.zip |
Use vfs_timestamp instead of nanotime when obtaining
a timestamp for use with timekeeping.
Approved by: re (tmpfs blanket)
Notes
Notes:
svn path=/head/; revision=171068
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_subr.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index 739747bf83b4..c5c7c85616a9 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: |