From 81d455e702a0846e60a6a9b8419b26740c510752 Mon Sep 17 00:00:00 2001 From: kib Date: Sat, 20 Sep 2008 19:46:45 +0000 Subject: 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 Reviewed by: bde Discussed on: freebsd-fs MFC after: 1 month --- sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sys/gnu/fs/xfs') diff --git a/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c b/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c index f09e9ce..0ef2e91 100644 --- a/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c +++ b/sys/gnu/fs/xfs/FreeBSD/xfs_vnops.c @@ -273,15 +273,9 @@ _xfs_getattr( /* * Fields with no direct equivalent in XFS - * leave initialized by VATTR_NULL */ -#if 0 vap->va_filerev = 0; - vap->va_birthtime = va.va_ctime; - vap->va_vaflags = 0; vap->va_flags = 0; - vap->va_spare = 0; -#endif return (0); } -- cgit v1.1