summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-12-18 05:41:51 +0000
committersam <sam@FreeBSD.org>2008-12-18 05:41:51 +0000
commit18be4046781d87777964612b5b9e8233864a8b91 (patch)
treef1e79c00dc1bb8d1b0d4cfb75f1e771b1cdf483e
parentf7ffcda082ec312ba49e76a14a2f6b0b0413e573 (diff)
downloadFreeBSD-src-18be4046781d87777964612b5b9e8233864a8b91.zip
FreeBSD-src-18be4046781d87777964612b5b9e8233864a8b91.tar.gz
fix stuff i broke
-rw-r--r--makefs.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/makefs.h b/makefs.h
index e02bf0c..4041465 100644
--- a/makefs.h
+++ b/makefs.h
@@ -270,9 +270,12 @@ extern struct timespec start_time;
#define cg_chkmagic_swap(cgp, ns) \
(ufs_rw32((cgp)->cg_magic, (ns)) == CG_MAGIC)
-#define cg_inosused_swap(cgp, ns) cg_inosused(cgp)
-#define cg_blksfree_swap(cgp, ns) cg_blksfree(cgp)
-#define cg_clustersfree_swap(cgp, ns) cg_clustersfree(cgp)
+#define cg_inosused_swap(cgp, ns) \
+ ((u_int8_t *)((u_int8_t *)(cgp) + ufs_rw32((cgp)->cg_iusedoff, (ns))))
+#define cg_blksfree_swap(cgp, ns) \
+ ((u_int8_t *)((u_int8_t *)(cgp) + ufs_rw32((cgp)->cg_freeoff, (ns))))
+#define cg_clustersfree_swap(cgp, ns) \
+ ((u_int8_t *)((u_int8_t *)(cgp) + ufs_rw32((cgp)->cg_clusteroff, (ns))))
#define cg_clustersum_swap(cgp, ns) \
((int32_t *)((uintptr_t)(cgp) + ufs_rw32((cgp)->cg_clustersumoff, ns)))
OpenPOWER on IntegriCloud