diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-10-02 03:57:59 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-10-02 03:57:59 +0000 |
commit | 1c522512fd8b855dc3d6dbd26fed59bda6e9f0e4 (patch) | |
tree | 7fdb21bc021ffa96a9ec8e2fef64117bb2d7f8f7 /sys/kern/init_main.c | |
parent | bde7cb88e1541224eebdf2697d051304801b7d90 (diff) | |
download | FreeBSD-src-1c522512fd8b855dc3d6dbd26fed59bda6e9f0e4.zip FreeBSD-src-1c522512fd8b855dc3d6dbd26fed59bda6e9f0e4.tar.gz |
Remove the global variable 'cmask', which was used to initialize the
fd_cmask field in the file descriptor structure for the first process
indirectly from CMASK, and when an fd structure is initialized before
being filled in, and instead just use CMASK. This appears to be an
artifact left over from the initial integration of quotas into BSD.
Suggested by: peter
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index bff07b1..f87137d 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -97,8 +97,6 @@ static struct plimit limit0; struct vmspace vmspace0; struct proc *initproc; -int cmask = CMASK; - struct vnode *rootvp; int boothowto = 0; /* initialized so that it can be patched */ SYSCTL_INT(_debug, OID_AUTO, boothowto, CTLFLAG_RD, &boothowto, 0, ""); @@ -413,7 +411,7 @@ proc0_init(void *dummy __unused) p->p_fdtol = NULL; mtx_init(&fdp->fd_fd.fd_mtx, FILEDESC_LOCK_DESC, NULL, MTX_DEF); fdp->fd_fd.fd_refcnt = 1; - fdp->fd_fd.fd_cmask = cmask; + fdp->fd_fd.fd_cmask = CMASK; fdp->fd_fd.fd_ofiles = fdp->fd_dfiles; fdp->fd_fd.fd_ofileflags = fdp->fd_dfileflags; fdp->fd_fd.fd_nfiles = NDFILE; |