svn commit: r277629 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Will Andrews
will at FreeBSD.org
Sat Jan 24 00:43:03 UTC 2015
Author: will
Date: Sat Jan 24 00:43:02 2015
New Revision: 277629
URL: https://svnweb.freebsd.org/changeset/base/277629
Log:
When creating or updating a node, use vfs_timestamp() for "now" instead
of gethrestime(), to allow the administrator to decide the appropriate
timestamp precision instead of always using nanosecond precision.
Modified:
head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c
Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c Sat Jan 24 00:40:42 2015 (r277628)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c Sat Jan 24 00:43:02 2015 (r277629)
@@ -794,7 +794,7 @@ zfs_mknode(znode_t *dzp, vattr_t *vap, d
gen = vap->va_nblocks; /* ditto */
} else {
obj = 0;
- gethrestime(&now);
+ vfs_timestamp(&now);
gen = dmu_tx_get_txg(tx);
}
@@ -1426,7 +1426,7 @@ zfs_tstamp_update_setup(znode_t *zp, uin
{
timestruc_t now;
- gethrestime(&now);
+ vfs_timestamp(&now);
if (have_tx) { /* will sa_bulk_update happen really soon? */
zp->z_atime_dirty = 0;
More information about the svn-src-all
mailing list