diff options
author | 1999-09-10 23:39:10 +0000 | |
---|---|---|
committer | 1999-09-10 23:39:10 +0000 | |
commit | 86f641efef3e2c34900f04a06cee59f1ed773ace (patch) | |
tree | 6437bec8ac584dc1f5713bce0b39b8e33ac5d710 /sys | |
parent | roundup(foo, NBPG) -> round_page(foo) (diff) | |
download | wireguard-openbsd-86f641efef3e2c34900f04a06cee59f1ed773ace.tar.xz wireguard-openbsd-86f641efef3e2c34900f04a06cee59f1ed773ace.zip |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ufs/inode.h | 6 |
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 { |