From: Crystal Kolipe Subject: Re: sys/tmpfs: use getnanotime() like FFS and MFS for To: tech@openbsd.org Date: Sat, 28 Mar 2026 23:17:39 +0000 On Sat, Mar 28, 2026 at 11:29:41PM +0100, Kirill A. Korinsky wrote: > I think the right fix is use getnanotime() instead nanotime() like FFS and > MFS. > > Thougs? Ok? Seems logical to me. > > > Index: tmpfs_subr.c > =================================================================== > RCS file: /home/cvs/src/sys/tmpfs/tmpfs_subr.c,v > diff -u -p -r1.27 tmpfs_subr.c > --- tmpfs_subr.c 12 Sep 2024 09:04:51 -0000 1.27 > +++ tmpfs_subr.c 28 Mar 2026 22:03:32 -0000 > @@ -1140,7 +1140,7 @@ tmpfs_update(tmpfs_node_t *node, int fla > { > struct timespec nowtm; > > - nanotime(&nowtm); > + getnanotime(&nowtm); > > if (flags & TMPFS_NODE_ACCESSED) { > node->tn_atime = nowtm; > > >