From d4bd40ca17df0d262a3ff4f797b95cadb160dba4 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Thu, 18 Dec 2008 05:41:51 +0000 Subject: [PATCH] fix stuff i broke --- makefs.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/makefs.h b/makefs.h index e02bf0c6b819..40414658498f 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)))