diff options
author | kib <kib@FreeBSD.org> | 2008-09-20 19:46:45 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-09-20 19:46:45 +0000 |
commit | 81d455e702a0846e60a6a9b8419b26740c510752 (patch) | |
tree | e507302b4dc7a5cad58e30c582aa41fa9949dc2f /sys/fs | |
parent | c6232cabbebca4c41ec2707ec6848c87507d2929 (diff) | |
download | FreeBSD-src-81d455e702a0846e60a6a9b8419b26740c510752.zip FreeBSD-src-81d455e702a0846e60a6a9b8419b26740c510752.tar.gz |
Initialize va_flags and va_filerev properly in VOP_GETATTR(). Don't
initialize va_vaflags and va_spare because they are not part of the
VOP_GETATTR() API. Also don't initialize birthtime to ctime or zero.
Submitted by: Jaakko Heinonen <jh saunalahti fi>
Reviewed by: bde
Discussed on: freebsd-fs
MFC after: 1 month
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index a7eadad..3eb44de 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -366,9 +366,7 @@ tmpfs_getattr(struct vop_getattr_args *v) vap->va_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ? node->tn_rdev : VNOVAL; vap->va_bytes = round_page(node->tn_size); - vap->va_filerev = VNOVAL; - vap->va_vaflags = 0; - vap->va_spare = VNOVAL; /* XXX */ + vap->va_filerev = 0; return 0; } |