fix stuff i broke

This commit is contained in:
Sam Leffler 2008-12-18 05:41:51 +00:00
parent 874edd6d05
commit d4bd40ca17

View File

@ -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)))