diff options
author | phk <phk@FreeBSD.org> | 2003-06-20 08:02:30 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-06-20 08:02:30 +0000 |
commit | b64d71d8c882365e1edc1d44eb28353a342e59e1 (patch) | |
tree | 17939dcf088b3725feddf37359ba0adf81614301 /sys/kern/vfs_extattr.c | |
parent | aca3c4a9f0555df7106b9e3e1b59a9864ea4c08c (diff) | |
download | FreeBSD-src-b64d71d8c882365e1edc1d44eb28353a342e59e1.zip FreeBSD-src-b64d71d8c882365e1edc1d44eb28353a342e59e1.tar.gz |
Don't (re)initialize f_gcflag to zero.
Move initialization of DTYPE_VNODE specific field f_seqcount into
the DTYPE_VNODE specific code.
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r-- | sys/kern/vfs_extattr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 46ff3aa..30e16fc 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -748,6 +748,7 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags, fp->f_data = vp; fp->f_flag = flags & FMASK; fp->f_ops = &vnops; + fp->f_seqcount = 1; fp->f_type = (vp->v_type == VFIFO ? DTYPE_FIFO : DTYPE_VNODE); FILEDESC_UNLOCK(fdp); FILE_UNLOCK(fp); |