diff options
author | Alan Cox <alc@FreeBSD.org> | 2004-06-04 04:03:26 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2004-06-04 04:03:26 +0000 |
commit | 62326de7427cc9c3738c25416797660fb7026b9f (patch) | |
tree | 2d81df657ced60192e9660e00659dc4cedbba139 /sys/sys/blist.h | |
parent | 1a74b99db7222cf76660e60bcbcc6cf4ee6aca25 (diff) | |
download | src-62326de7427cc9c3738c25416797660fb7026b9f.tar.gz src-62326de7427cc9c3738c25416797660fb7026b9f.zip |
Notes
Diffstat (limited to 'sys/sys/blist.h')
-rw-r--r-- | sys/sys/blist.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/sys/blist.h b/sys/sys/blist.h index 8cda0c02086d..e1d8fff8074c 100644 --- a/sys/sys/blist.h +++ b/sys/sys/blist.h @@ -56,6 +56,14 @@ typedef u_int32_t u_daddr_t; /* unsigned disk address */ /* + * note: currently use SWAPBLK_NONE as an absolute value rather then + * a flag bit. + */ + +#define SWAPBLK_MASK ((daddr_t)((u_daddr_t)-1 >> 1)) /* mask */ +#define SWAPBLK_NONE ((daddr_t)((u_daddr_t)SWAPBLK_MASK + 1))/* flag */ + +/* * blmeta and bl_bitmap_t MUST be a power of 2 in size. */ |