diff options
author | Sebastien Marie <semarie@cvs.openbsd.org> | 2021-10-15 06:30:07 +0000 |
---|---|---|
committer | Sebastien Marie <semarie@cvs.openbsd.org> | 2021-10-15 06:30:07 +0000 |
commit | 7b2952869b89d0682a0b896eda9252154685d971 (patch) | |
tree | a40acde86c670dc4d26aa44f8cece98dcbb8374f /sys/ufs | |
parent | d20b73cea798c9da6cfaab2e8d00e960cf55a488 (diff) |
vnode: remove vop_generic_{,is,un}lock stub functions
These functions are only stubs (returning 0). Replace them with nullop
function (same behaviour). There is no intented behaviour changes.
While here, reorder some vop_islocked member in structs to be next
others vop_{,un}lock members.
ok visa@
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/mfs/mfs_vnops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ufs/mfs/mfs_vnops.c b/sys/ufs/mfs/mfs_vnops.c index 98484b064db..eba90ab9131 100644 --- a/sys/ufs/mfs/mfs_vnops.c +++ b/sys/ufs/mfs/mfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfs_vnops.c,v 1.57 2021/10/08 08:34:09 claudio Exp $ */ +/* $OpenBSD: mfs_vnops.c,v 1.58 2021/10/15 06:30:06 semarie Exp $ */ /* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */ /* @@ -74,12 +74,12 @@ const struct vops mfs_vops = { .vop_abortop = vop_generic_badop, .vop_inactive = mfs_inactive, .vop_reclaim = mfs_reclaim, - .vop_lock = vop_generic_lock, - .vop_unlock = vop_generic_unlock, + .vop_lock = nullop, + .vop_unlock = nullop, + .vop_islocked = nullop, .vop_bmap = vop_generic_bmap, .vop_strategy = mfs_strategy, .vop_print = mfs_print, - .vop_islocked = vop_generic_islocked, .vop_pathconf = vop_generic_badop, .vop_advlock = vop_generic_badop, .vop_bwrite = vop_generic_bwrite |