diff options
author | Mike Silbersack <silby@FreeBSD.org> | 2005-07-16 02:23:41 +0000 |
---|---|---|
committer | Mike Silbersack <silby@FreeBSD.org> | 2005-07-16 02:23:41 +0000 |
commit | 2018f30c01314b5d9df7469ddf0c91acd5d64f53 (patch) | |
tree | f3b34d0dc837dc462214767a18c64b86a0155c62 /sys/vm/uma_int.h | |
parent | d144359bde2204ab0c816a05e1369cc754b5b7c1 (diff) | |
download | src-2018f30c01314b5d9df7469ddf0c91acd5d64f53.tar.gz src-2018f30c01314b5d9df7469ddf0c91acd5d64f53.zip |
Increase the flags field for kegs from a 16 to a 32 bit value;
we have exhausted all 16 flags.
Notes
Notes:
svn path=/head/; revision=148072
Diffstat (limited to 'sys/vm/uma_int.h')
-rw-r--r-- | sys/vm/uma_int.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h index 8865d304ca10..b861de802733 100644 --- a/sys/vm/uma_int.h +++ b/sys/vm/uma_int.h @@ -219,7 +219,7 @@ struct uma_keg { u_int16_t uk_pgoff; /* Offset to uma_slab struct */ u_int16_t uk_ppera; /* pages per allocation from backend */ u_int16_t uk_ipers; /* Items per slab */ - u_int16_t uk_flags; /* Internal flags */ + u_int32_t uk_flags; /* Internal flags */ }; /* Simpler reference to uma_keg for internal use. */ @@ -319,10 +319,10 @@ struct uma_zone { /* * These flags must not overlap with the UMA_ZONE flags specified in uma.h. */ -#define UMA_ZFLAG_PRIVALLOC 0x1000 /* Use uz_allocf. */ -#define UMA_ZFLAG_INTERNAL 0x2000 /* No offpage no PCPU. */ -#define UMA_ZFLAG_FULL 0x4000 /* Reached uz_maxpages */ -#define UMA_ZFLAG_CACHEONLY 0x8000 /* Don't ask VM for buckets. */ +#define UMA_ZFLAG_PRIVALLOC 0x10000000 /* Use uz_allocf. */ +#define UMA_ZFLAG_INTERNAL 0x20000000 /* No offpage no PCPU. */ +#define UMA_ZFLAG_FULL 0x40000000 /* Reached uz_maxpages */ +#define UMA_ZFLAG_CACHEONLY 0x80000000 /* Don't ask VM for buckets. */ /* Internal prototypes */ static __inline uma_slab_t hash_sfind(struct uma_hash *hash, u_int8_t *data); |