aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-06-20 08:02:30 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-06-20 08:02:30 +0000
commiteaaca5deee7db4f28e6f3b782618609647b942be (patch)
tree17939dcf088b3725feddf37359ba0adf81614301 /sys/kern/kern_descrip.c
parentc066b8920e0645674f0542b898c2a0c64df43d40 (diff)
downloadsrc-eaaca5deee7db4f28e6f3b782618609647b942be.tar.gz
src-eaaca5deee7db4f28e6f3b782618609647b942be.zip
Don't (re)initialize f_gcflag to zero.
Move initialization of DTYPE_VNODE specific field f_seqcount into the DTYPE_VNODE specific code.
Notes
Notes: svn path=/head/; revision=116601
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 667812ab7b2c..6699e32f04f6 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1216,11 +1216,9 @@ falloc(td, resultfp, resultfd)
* put it at the front of the list of open files.
*/
fp->f_mtxp = mtx_pool_alloc();
- fp->f_gcflag = 0;
fp->f_count = 1;
fp->f_cred = crhold(td->td_ucred);
fp->f_ops = &badfileops;
- fp->f_seqcount = 1;
FILEDESC_LOCK(p->p_fd);
if ((fq = p->p_fd->fd_ofiles[0])) {
LIST_INSERT_AFTER(fq, fp, f_list);