Page MenuHomeFreeBSD

vfs: remove flags argument from VOP_UNLOCK
ClosedPublic

Authored by mjg on Aug 27 2019, 5:55 AM.
Tags
None
Referenced Files
F144968964: D21427.id61337.diff
Sat, Feb 14, 2:41 PM
Unknown Object (File)
Wed, Feb 11, 1:00 AM
Unknown Object (File)
Wed, Feb 11, 1:00 AM
Unknown Object (File)
Sun, Feb 8, 12:32 PM
Unknown Object (File)
Sat, Jan 31, 11:28 AM
Unknown Object (File)
Dec 27 2025, 12:09 PM
Unknown Object (File)
Dec 21 2025, 12:24 PM
Unknown Object (File)
Nov 27 2025, 2:11 PM
Subscribers

Details

Summary

Below is the only material part of the change, the rest was mostly autogenerated with coccinelle and can be found here:

https://people.freebsd.org/~mjg/vop-unlock-flags-removal.diff

Test Plan

universe
ports exprun

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 26124

Event Timeline

kib added inline comments.
sys/kern/vfs_subr.c
4888

Remove this empty _post method ?

This revision is now accepted and ready to land.Aug 27 2019, 3:53 PM

As expected several ports failed, unfortunately some of them have rather nasty code which will require a lot of care and testing.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240156

most notably open-vm-tools has copy-pasted and modified old variant of null_unlock. Thus removal of the flags argument will wait a little bit until I get around to sorting this out.

Can you post the coccinelle script used somewhere? Thanks.