From b00b459084e4a78fffb7d747e5f377356fd8ccc0 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Sun, 7 Feb 2016 01:04:47 +0000 Subject: [PATCH] Clarify a comment in kern_openat() about the use of falloc_noinstall(). Suggested by: Steve Jacobson --- sys/kern/vfs_syscalls.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index c246b9e1f6b..0762ca7a73f 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -987,7 +987,8 @@ kern_openat(struct thread *td, int fd, char *path, enum uio_seg pathseg, } /* - * Allocate the file descriptor, but don't install a descriptor yet. + * Allocate a file structure. The descriptor to reference it + * is allocated and set by finstall() below. */ error = falloc_noinstall(td, &fp); if (error != 0)