summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_alloc.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-12-02 11:21:16 +0000
committerbde <bde@FreeBSD.org>1997-12-02 11:21:16 +0000
commite5bce5c78c0eec929722656daf79a8e91f11665c (patch)
treef293448d29528fbf5262cc3e99ee0d1dca55ec7c /sys/ufs/ffs/ffs_alloc.c
parent588c9db8ef2b9ec86cb6ff71779047f7ec29d7d8 (diff)
downloadFreeBSD-src-e5bce5c78c0eec929722656daf79a8e91f11665c.zip
FreeBSD-src-e5bce5c78c0eec929722656daf79a8e91f11665c.tar.gz
Fix a small style bug in the generation number change (rev.1.33) before
copying the change to other fs's.
Diffstat (limited to 'sys/ufs/ffs/ffs_alloc.c')
-rw-r--r--sys/ufs/ffs/ffs_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c
index 8d1d5c0..c0092de 100644
--- a/sys/ufs/ffs/ffs_alloc.c
+++ b/sys/ufs/ffs/ffs_alloc.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_alloc.c 8.18 (Berkeley) 5/26/95
- * $Id: ffs_alloc.c,v 1.43 1997/11/22 07:00:40 bde Exp $
+ * $Id: ffs_alloc.c,v 1.44 1997/11/22 08:35:45 bde Exp $
*/
#include "opt_quota.h"
@@ -602,7 +602,7 @@ ffs_valloc(pvp, mode, cred, vpp)
/*
* Set up a new generation number for this inode.
*/
- if (ip->i_gen == 0 || ++(ip->i_gen) == 0)
+ if (ip->i_gen == 0 || ++ip->i_gen == 0)
ip->i_gen = random() / 2 + 1;
return (0);
noinodes:
OpenPOWER on IntegriCloud