Page MenuHomeFreeBSD

vfs: eliminate v_tag from struct vnode
ClosedPublic

Authored by mjg on Jan 5 2020, 4:58 AM.
Tags
None
Referenced Files
F168831220: D23037.id.diff
Sun, Aug 30, 8:53 AM
F168698833: D23037.id66431.diff
Sat, Aug 29, 5:01 PM
Unknown Object (File)
Sat, Aug 29, 4:46 AM
Unknown Object (File)
Thu, Aug 27, 7:16 PM
Unknown Object (File)
Thu, Aug 27, 4:53 PM
Unknown Object (File)
Tue, Aug 25, 6:50 PM
Unknown Object (File)
Tue, Aug 25, 6:23 PM
Unknown Object (File)
Tue, Aug 25, 2:19 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 Not Applicable
Unit
Tests Not Applicable

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

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.