Author: mjg
Date: Mon Aug 10 10:36:10 2020
New Revision: 364068
URL: https://svnweb.freebsd.org/changeset/base/364068

Log:
  devfs: use cheaper lockmgr entry points
  
  Tested by:    pho

Modified:
  head/sys/fs/devfs/devfs_vnops.c

Modified: head/sys/fs/devfs/devfs_vnops.c
==============================================================================
--- head/sys/fs/devfs/devfs_vnops.c     Mon Aug 10 10:35:47 2020        
(r364067)
+++ head/sys/fs/devfs/devfs_vnops.c     Mon Aug 10 10:36:10 2020        
(r364068)
@@ -1928,6 +1928,9 @@ static struct vop_vector devfs_vnodeops = {
 #endif
        .vop_symlink =          devfs_symlink,
        .vop_vptocnp =          devfs_vptocnp,
+       .vop_lock1 =            vop_lock,
+       .vop_unlock =           vop_unlock,
+       .vop_islocked =         vop_islocked,
 };
 VFS_VOP_VECTOR_REGISTER(devfs_vnodeops);
 
@@ -1966,6 +1969,9 @@ static struct vop_vector devfs_specops = {
        .vop_symlink =          VOP_PANIC,
        .vop_vptocnp =          devfs_vptocnp,
        .vop_write =            dead_write,
+       .vop_lock1 =            vop_lock,
+       .vop_unlock =           vop_unlock,
+       .vop_islocked =         vop_islocked,
 };
 VFS_VOP_VECTOR_REGISTER(devfs_specops);
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to