diff --git a/share/man/man9/namei.9 b/share/man/man9/namei.9 --- a/share/man/man9/namei.9 +++ b/share/man/man9/namei.9 @@ -31,7 +31,7 @@ .\" If you integrate this manpage in another OS, I'd appreciate a note .\" - eivind@FreeBSD.org .\" -.Dd July 8, 2023 +.Dd December 17, 2024 .Dt NAMEI 9 .Os .Sh NAME @@ -124,7 +124,6 @@ unless .Dv LOCKSHARED is also set. -The .Xr VOP_UNLOCK 9 should be used to release the lock (or @@ -153,8 +152,19 @@ .Xr vrele 9 . .It Dv LOCKSHARED Lock vnode on return with -.Dv LK_SHARED . -The +.Dv LK_SHARED , +if allowed by the file system. +The file system may disallow this by clearing +.Dv MNTK_LOOKUP_SHARED +from +.Dv mp->mnt_kern_flag +during mount. +The file system must also explicitly allow shared locks for each vnode by +calling +.Fn VN_LOCK_ASHARE +when allocating the vnode. +If shared locking is disallowed, then the vnode will be returned with +.Dv LK_EXCLUSIVE . .Xr VOP_UNLOCK 9 should be used to release the lock (or