vfs: drop a bunch of cast macros

2023-07-12 Thread thib4711
make it obvious in the vfsops assignment that an op isnt supported. diff --git sys/isofs/cd9660/cd9660_extern.h sys/isofs/cd9660/cd9660_extern.h index 2a5348e1768..bd8154a27bd 100644 --- sys/isofs/cd9660/cd9660_extern.h +++ sys/isofs/cd9660/cd9660_extern.h @@ -94,10 +94,8 @@ int

vnode: drop comment, nonsensical where it is

2023-07-12 Thread thib4711
The line comment in struct vnode is fine; diff --git sys/sys/vnode.h sys/sys/vnode.h index 30787afddd8..b2f0fa4b60c 100644 --- sys/sys/vnode.h +++ sys/sys/vnode.h @@ -74,12 +74,7 @@ enum vtagtype{ "unused", "unused", "unused", "ISOFS", "unused", \ "EXT2FS", "VFS",

refcnt_init(9): Add missing word

2023-07-12 Thread thib4711
diff --git a/share/man/man9/refcnt_init.9 b/share/man/man9/refcnt_init.9 index 96fa94e7e64..142c1e57d8d 100644 --- a/share/man/man9/refcnt_init.9 +++ b/share/man/man9/refcnt_init.9 @@ -71,7 +71,7 @@ is used to release an existing reference. is used to release an existing reference and wakes up a

deadfs cleanup

2023-07-11 Thread thib4711
deadfs cleanup chkvnlock() is useless, since deadfs vops are only ever assigned to a vnode at the tail end of vclean(), at which point the VXLOCK has been cleared and won't be taken again for this particular vnode until it is re-used through getnewvnode(). As a bonus, LK_DRAIN can soon retire as