diff options
-rw-r--r-- | sys/kern/kern_descrip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 505b613481c5..305470eaac7d 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -144,6 +144,10 @@ int nfiles; /* actual number of open files */ struct sx filelist_lock; /* sx to protect filelist */ struct mtx sigio_lock; /* mtx to protect pointers to sigio */ +/* A mutex to protect the association between a proc and filedesc. */ +struct mtx fdesc_mtx; +MTX_SYSINIT(fdesc, &fdesc_mtx, "fdesc", MTX_DEF); + /* * Find the first zero bit in the given bitmap, starting at low and not * exceeding size - 1. @@ -1524,10 +1528,6 @@ fdcopy(fdp) return (newfdp); } -/* A mutex to protect the association between a proc and filedesc. */ -struct mtx fdesc_mtx; -MTX_SYSINIT(fdesc, &fdesc_mtx, "fdesc", MTX_DEF); - /* * Release a filedesc structure. */ |