Page MenuHomeFreeBSD

vfs: eliminate v_tag from struct vnode
ClosedPublic

Authored by mjg on Jan 5 2020, 4:58 AM.
Tags
None
Referenced Files
F136918713: D23037.id.diff
Thu, Nov 20, 4:02 PM
F136918665: D23037.id66431.diff
Thu, Nov 20, 4:01 PM
F136918585: D23037.id66368.diff
Thu, Nov 20, 4:01 PM
F136917365: D23037.diff
Thu, Nov 20, 3:51 PM
Unknown Object (File)
Wed, Nov 19, 3:40 PM
Unknown Object (File)
Tue, Nov 11, 11:43 PM
Unknown Object (File)
Sat, Oct 25, 5:10 PM
Unknown Object (File)
Fri, Oct 24, 11:41 PM
Subscribers

Details

Summary

The only consumer uses it in a bogus manner, replace the use with an equivalent bogosity which does not require the field.

This also means getnewvnode takes the argument unnecessarily. I'll make a sweep to remove it later.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 28488

Event Timeline

This revision is now accepted and ready to land.Jan 6 2020, 8:17 PM
This revision was automatically updated to reflect the committed changes.
head/sys/security/mac_veriexec/mac_veriexec.c
754 ↗(On Diff #66431)

What you can do is (struct vnode *)(vp->v_object->handle) for object != NULL && object->type == OBJT_VNODE. The only case that would be not handled by this expression is nullfs mount over tmpfs.