summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-09-10 23:39:11 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-09-10 23:39:11 +0000
commit4885a7e1d87e445da0d672ca0d4199c982863b3b (patch)
tree7201c4e3e6ad7a06f1cf32568ba5224439da20aa
parent019e639e28555d1687ad4fe92e4d9fc71b6bac13 (diff)
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.
-rw-r--r--sys/ufs/ufs/inode.h6
1 files changed, 5 insertions, 1 deletions
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 {