aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-01-28 22:30:53 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-02-12 01:02:20 +0000
commit49c117c193768b10f5fb1c5e4d6b88300cfbcdd6 (patch)
tree6e35ec4b233d19cdad41ad6c4cedf431e6ace854 /README
parentee965dfa64929227ced8adb68900c35f877480e7 (diff)
downloadsrc-49c117c193768b10f5fb1c5e4d6b88300cfbcdd6.tar.gz
src-49c117c193768b10f5fb1c5e4d6b88300cfbcdd6.zip
Add VOP_VPUT_PAIR() with trivial default implementation.
The VOP is intended to be used in situations where VFS has two referenced locked vnodes, typically a directory vnode dvp and a vnode vp that is linked from the directory, and at least dvp is vput(9)ed. The child vnode can be also vput-ed, but optionally left referenced and locked. There, at least UFS may need to do some actions with dvp which cannot be done while vp is also locked, so its lock might be dropped temporary. For instance, in some cases UFS needs to sync dvp to avoid filesystem state that is currently not handled by either kernel nor fsck. Having such VOP provides the neccessary context for filesystem which can do correct locking and handle potential reclamation of vp after relock. Trivial implementation does vput(dvp) and optionally vput(vp). Reviewed by: chs, mckusick Tested by: pho MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions