mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-25 16:13:17 +00:00
Move the definitions of SWAPBLK_NONE and SWAPBLK_MASK from vm_page.h to
blist.h, enabling the removal of numerous #includes from subr_blist.c. (subr_blist.c and swap_pager.c are the only users of these definitions.)
This commit is contained in:
parent
1a74b99db7
commit
62326de742
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130049
@ -96,11 +96,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/malloc.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <vm/vm.h>
|
||||
#include <vm/vm_object.h>
|
||||
#include <vm/vm_kern.h>
|
||||
#include <vm/vm_extern.h>
|
||||
#include <vm/vm_page.h>
|
||||
|
||||
#else
|
||||
|
||||
|
@ -55,6 +55,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.
|
||||
*/
|
||||
|
@ -146,14 +146,6 @@ CTASSERT(sizeof(u_long) >= 8);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 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 */
|
||||
|
||||
#if !defined(KLD_MODULE)
|
||||
/*
|
||||
* Page coloring parameters
|
||||
|
Loading…
Reference in New Issue
Block a user