git: 5958cd88f2e7 - main - vfs: fix description comment of vfs_lookup()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Jun 2023 22:34:58 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=5958cd88f2e7a40190bfed4604dc41b2784c2d62
commit 5958cd88f2e7a40190bfed4604dc41b2784c2d62
Author: Igor Ostapenko <pm@igoro.pro>
AuthorDate: 2023-06-27 22:31:50 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-06-27 22:33:25 +0000
vfs: fix description comment of vfs_lookup()
Signed-off-by: Igor Ostapenko <pm@igoro.pro>
Reviewed by: imp, mhorne
Pull Request: https://github.com/freebsd/freebsd-src/pull/737
---
sys/kern/vfs_lookup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index dd6282a45d97..52fc3ecbd01d 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -877,7 +877,7 @@ vfs_lookup_failifexists(struct nameidata *ndp)
* Search a pathname.
* This is a very central and rather complicated routine.
*
- * The pathname is pointed to by ni_ptr and is of length ni_pathlen.
+ * The pathname is pointed to by cn_nameptr and is of length ni_pathlen.
* The starting directory is taken from ni_startdir. The pathname is
* descended until done, or a symbolic link is encountered. The variable
* ni_more is clear if the path is completed; it is set to one if a
@@ -898,7 +898,7 @@ vfs_lookup_failifexists(struct nameidata *ndp)
* Overall outline of lookup:
*
* dirloop:
- * identify next component of name at ndp->ni_ptr
+ * identify next component of name at ndp->ni_cnd.cn_nameptr
* handle degenerate case where name is null string
* if .. and crossing mount points and on mounted filesys, find parent
* call VOP_LOOKUP routine for next component name