Make swap_pager_haspages() static; remove unused function prototypes.
This commit is contained in:
parent
0e08168e03
commit
5ea4972cd4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116629
@ -150,6 +150,8 @@ static vm_object_t
|
||||
vm_prot_t prot, vm_ooffset_t offset);
|
||||
static void swap_pager_dealloc(vm_object_t object);
|
||||
static int swap_pager_getpages(vm_object_t, vm_page_t *, int, int);
|
||||
static boolean_t
|
||||
swap_pager_haspage(vm_object_t object, vm_pindex_t pindex, int *before, int *after);
|
||||
static void swap_pager_init(void);
|
||||
static void swap_pager_unswapped(vm_page_t);
|
||||
static void swap_pager_strategy(vm_object_t, struct bio *);
|
||||
@ -724,7 +726,7 @@ swap_pager_copy(srcobject, dstobject, offset, destroysource)
|
||||
* (that is handled in getpages/putpages). It probably isn't worth
|
||||
* doing here.
|
||||
*/
|
||||
boolean_t
|
||||
static boolean_t
|
||||
swap_pager_haspage(object, pindex, before, after)
|
||||
vm_object_t object;
|
||||
vm_pindex_t pindex;
|
||||
|
@ -112,13 +112,10 @@ extern int nswdev;
|
||||
extern int vm_swap_size; /* number of free swap blocks, in pages */
|
||||
|
||||
void swap_pager_putpages(vm_object_t, vm_page_t *, int, boolean_t, int *);
|
||||
boolean_t swap_pager_haspage(vm_object_t object, vm_pindex_t pindex, int *before, int *after);
|
||||
void swap_pager_swapoff(int devidx, int *sw_used);
|
||||
|
||||
int swap_pager_swp_alloc(vm_object_t, int);
|
||||
void swap_pager_copy(vm_object_t, vm_object_t, vm_pindex_t, int);
|
||||
void swap_pager_freespace(vm_object_t, vm_pindex_t, vm_size_t);
|
||||
void swap_pager_dmzspace(vm_object_t, vm_pindex_t, vm_size_t);
|
||||
void swap_pager_swap_init(void);
|
||||
int swap_pager_isswapped(vm_object_t, int);
|
||||
int swap_pager_reserve(vm_object_t, vm_pindex_t, vm_size_t);
|
||||
@ -127,7 +124,6 @@ int swap_pager_reserve(vm_object_t, vm_pindex_t, vm_size_t);
|
||||
* newswap functions
|
||||
*/
|
||||
|
||||
void swap_pager_page_removed(vm_page_t, vm_object_t);
|
||||
|
||||
#endif /* _KERNEL */
|
||||
#endif /* _VM_SWAP_PAGER_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user