summaryrefslogtreecommitdiff
path: root/usr.sbin/makefs/ufs/ffs
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-10-16 22:26:35 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-10-16 22:26:35 +0000
commitef39023ff7faf9863cb2b475a456f9f658565033 (patch)
tree103cd8c87b42649fa95aee357c959f0f00035249 /usr.sbin/makefs/ufs/ffs
parentaaa5e4722f14625922d77c94f57043553db655ca (diff)
remove swapping add macros
Diffstat (limited to 'usr.sbin/makefs/ufs/ffs')
-rw-r--r--usr.sbin/makefs/ufs/ffs/ffs_subr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/makefs/ufs/ffs/ffs_subr.c b/usr.sbin/makefs/ufs/ffs/ffs_subr.c
index d6825c79259..5284fd8b96a 100644
--- a/usr.sbin/makefs/ufs/ffs/ffs_subr.c
+++ b/usr.sbin/makefs/ufs/ffs/ffs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_subr.c,v 1.4 2016/10/16 22:19:10 tedu Exp $ */
+/* $OpenBSD: ffs_subr.c,v 1.5 2016/10/16 22:26:34 tedu Exp $ */
/* $NetBSD: ffs_subr.c,v 1.49 2016/05/07 11:59:08 maxv Exp $ */
/*
@@ -204,11 +204,11 @@ ffs_clusteracct(struct fs *fs, struct cg *cgp, int32_t blkno, int cnt)
i = back + forw + 1;
if (i > fs->fs_contigsumsize)
i = fs->fs_contigsumsize;
- ufs_add32(sump[i], cnt, 0);
+ sump[i] += cnt;
if (back > 0)
- ufs_add32(sump[back], -cnt, 0);
+ sump[back] -= cnt;
if (forw > 0)
- ufs_add32(sump[forw], -cnt, 0);
+ sump[forw] -= cnt;
/*
* Update cluster summary information.