git: kernel - Micro-optimization, only set v_lastwrite_ts for regular files

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Feb 15 11:48:36 PST 2020


commit f8ec4d29c88b01f50b7903f90db6135b8b5ff1c2
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Feb 15 11:44:57 2020 -0800

    kernel - Micro-optimization, only set v_lastwrite_ts for regular files
    
    * When mmap()ing a file SHARED/RW, only update v_lastwrite_ts
      for regular files.   This avoids an unnecessary exclusive lock
      and related SMP contention on devices (such as /dev/lpmap).

Summary of changes:
 sys/vm/vm_mmap.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f8ec4d29c88b01f50b7903f90db6135b8b5ff1c2


-- 
DragonFly BSD source repository



More information about the Commits mailing list