The VOP_LOOKUP(9) man page incorrectly states the following about
VOP_RENAME(9).

"If not NULL, tvp will be locked on return as well."

However, dorenameat() in /sys/kern/vfs_syscalls.c unlocks tvp on error
and file systems unlock it on success. This patch changes this line to
read "unlocked".

ok?


Index: VOP_LOOKUP.9
===================================================================
RCS file: /cvs/src/share/man/man9/VOP_LOOKUP.9,v
retrieving revision 1.38
diff -u -p -p -u -r1.38 VOP_LOOKUP.9
--- VOP_LOOKUP.9        26 Apr 2017 05:55:27 -0000      1.38
+++ VOP_LOOKUP.9        24 Nov 2017 22:54:24 -0000
@@ -855,7 +855,7 @@ on return.
 If not
 .Dv NULL ,
 .Fa tvp
-will be locked on return as well.
+will be unlocked on return as well.
 Upon success, zero is returned; otherwise, an appropriate error code is
 returned.
 .Pp

Reply via email to