Author: mav
Date: Mon Mar 21 07:36:02 2016
New Revision: 297144
URL: https://svnweb.freebsd.org/changeset/base/297144

Log:
  MFC r277629 (by will):
  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:
  stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c
==============================================================================
--- stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c        
Mon Mar 21 07:16:30 2016        (r297143)
+++ stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_znode.c        
Mon Mar 21 07:36:02 2016        (r297144)
@@ -795,7 +795,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);
        }
 
@@ -1437,7 +1437,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;
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to