fix stuff i broke
This commit is contained in:
parent
874edd6d05
commit
d4bd40ca17
9
makefs.h
9
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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user