diff options
author | kib <kib@FreeBSD.org> | 2008-09-20 19:50:52 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-09-20 19:50:52 +0000 |
commit | a127656dea4eaa9f2125b73268a5749b25cbbbbd (patch) | |
tree | 115bb5b75428770843d9c2637d376cde0d96084e /sys/kern | |
parent | ef4f1dc9c70af87320df47334a3d15a86cad6994 (diff) | |
download | FreeBSD-src-a127656dea4eaa9f2125b73268a5749b25cbbbbd.zip FreeBSD-src-a127656dea4eaa9f2125b73268a5749b25cbbbbd.tar.gz |
fdescfs, devfs, mqueuefs, nfs, portalfs, pseudofs, tmpfs and xfs
initialize the vattr structure in VOP_GETATTR() with VATTR_NULL(),
vattr_null() or by zeroing it. Remove these to allow preinitialization
of fields work in vn_stat(). This is needed to get birthtime initialized
correctly.
Submitted by: Jaakko Heinonen <jh saunalahti fi>
Discussed on: freebsd-fs
MFC after: 1 month
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_mqueue.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c index 58e133d..aa362cb 100644 --- a/sys/kern/uipc_mqueue.c +++ b/sys/kern/uipc_mqueue.c @@ -1164,7 +1164,6 @@ mqfs_getattr(struct vop_getattr_args *ap) struct vattr *vap = ap->a_vap; int error = 0; - VATTR_NULL(vap); vap->va_type = vp->v_type; vap->va_mode = pn->mn_mode; vap->va_nlink = 1; |