uipc_shm.c: Move comment where it belongs.

Reviewed by:	markj
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D24652
This commit is contained in:
Konstantin Belousov 2020-09-09 21:00:11 +00:00
parent c90cb43503
commit 25f44824ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365510

View File

@ -684,11 +684,6 @@ shm_access(struct shmfd *shmfd, struct ucred *ucred, int flags)
return (error);
}
/*
* Dictionary management. We maintain an in-kernel dictionary to map
* paths to shmfd objects. We use the FNV hash on the path to store
* the mappings in a hash table.
*/
static void
shm_init(void *arg)
{
@ -702,6 +697,11 @@ shm_init(void *arg)
}
SYSINIT(shm_init, SI_SUB_SYSV_SHM, SI_ORDER_ANY, shm_init, NULL);
/*
* Dictionary management. We maintain an in-kernel dictionary to map
* paths to shmfd objects. We use the FNV hash on the path to store
* the mappings in a hash table.
*/
static struct shmfd *
shm_lookup(char *path, Fnv32_t fnv)
{