diff options
-rw-r--r-- | sys/kern/vfs_lookup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index c813296b4931..20919fb38b4d 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -81,6 +81,11 @@ static void NDVALIDATE_impl(struct nameidata *, int); #define NDVALIDATE(ndp) #endif +/* + * Prepare namei() to restart. Reset components to its original state and set + * ISRESTARTED flag which signals the underlying lookup code to change the root + * from ABI root to actual root and prevents a further restarts. + */ #define NDRESTART(ndp) do { \ NDREINIT_DBG(ndp); \ ndp->ni_resflags = 0; \ |