git: kernel - Rework vfs_timestamp(), adjust default
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Mar 11 12:00:55 PDT 2020
commit d489a79ac396124279de5ab714e72af874d9dad4
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Mar 11 11:57:57 2020 -0700
kernel - Rework vfs_timestamp(), adjust default
* Rework the vfs_timestamp() precision mode as follows:
0 TSP_SEC seconds granularity
1 TSP_HZ ticks granularity
2 TSP_USEC ticks granularity modulo microseconds
3 TSP_NSEC ticks granularity modulo nanoseconds
4 TSP_USEC_PRECISE precise microseconds (expensive)
5 TSP_NSEC_PRECISE precise nanoseconds (expensive)
The default is TSP_USEC (with tick granularity)
* Change numerous bits of code that were calling getmicrotime()
or calling microtime()/nanotime() explicitly instead of calling
vfs_timstamp(). procfs and devfs in particular.
Reported-by: mjg
Summary of changes:
sys/kern/sys_pipe.c | 8 ++++++--
sys/kern/vfs_subr.c | 29 ++++++++++++++++++-----------
sys/sys/pipe.h | 1 +
sys/vfs/devfs/devfs_core.c | 6 +++---
sys/vfs/devfs/devfs_vnops.c | 34 +++++++++++++++++-----------------
sys/vfs/hammer/hammer_inode.c | 7 ++++---
sys/vfs/hammer/hammer_transaction.c | 27 +++++++++++++++------------
sys/vfs/hammer2/hammer2_subr.c | 6 +++---
sys/vfs/procfs/procfs_vnops.c | 2 +-
9 files changed, 68 insertions(+), 52 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d489a79ac396124279de5ab714e72af874d9dad4
--
DragonFly BSD source repository
More information about the Commits
mailing list