From 4885a7e1d87e445da0d672ca0d4199c982863b3b Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 10 Sep 1999 23:39:11 +0000 Subject: let the DOINGSOFTDEP macro always return 0 if FFS_SOFTUPDATES is not defined. It will do that anyway, but this way the compiler can optimize better. --- sys/ufs/ufs/inode.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/ufs/ufs/inode.h b/sys/ufs/ufs/inode.h index c5cf93b5dfe..09f582c4e09 100644 --- a/sys/ufs/ufs/inode.h +++ b/sys/ufs/ufs/inode.h @@ -1,4 +1,4 @@ -/* $OpenBSD: inode.h,v 1.10 1997/11/09 22:14:06 millert Exp $ */ +/* $OpenBSD: inode.h,v 1.11 1999/09/10 23:39:10 art Exp $ */ /* $NetBSD: inode.h,v 1.8 1995/06/15 23:22:50 cgd Exp $ */ /* @@ -242,7 +242,11 @@ struct indir { } /* Determine if soft dependencies are being done */ +#ifdef FFS_SOFTUPDATES #define DOINGSOFTDEP(vp) ((vp)->v_mount->mnt_flag & MNT_SOFTDEP) +#else +#define DOINGSOFTDEP(vp) (0) +#endif /* This overlays the fid structure (see mount.h). */ struct ufid { -- cgit v1.2.3