kalloc(sizeof (struct vstruct_alias));
if(alias_struct != NULL) {
alias_struct->vs = (struct vstruct *)bs;
- alias_struct->name = ISVS;
+ alias_struct->name = &default_pager_ops;
port->alias = (int) alias_struct;
}
else {
error = KERN_FAILURE;
else {
vm_object_t transfer_object;
- int count;
+ unsigned int count;
upl_t upl;
transfer_object = vm_object_allocate((vm_object_size_t)VM_SUPER_CLUSTER);
kalloc(sizeof (struct vstruct_alias));
if(alias_struct != NULL) {
alias_struct->vs = (struct vstruct *)vsa;
- alias_struct->name = ISVS;
+ alias_struct->name = &default_pager_ops;
reply_port->alias = (int) alias_struct;
vsa->reply_port = reply_port;
vs_alloc_async_count++;
kalloc(sizeof (struct vstruct_alias));
if(alias_struct != NULL) {
alias_struct->vs = reply_port;
- alias_struct->name = ISVS;
+ alias_struct->name = &default_pager_ops;
reply_port->alias = (int) vsa;
vsa->reply_port = reply_port;
vs_alloc_async_count++;
/*
* The following fields will be provided later.
*/
- vs->vs_mem_obj = NULL;
+ vs->vs_pager_ops = NULL;
vs->vs_control = MEMORY_OBJECT_CONTROL_NULL;
vs->vs_references = 1;
vs->vs_seqno = 0;
__unused int flags)
{
panic("ps_read_device not supported");
+ return KERN_FAILURE;
}
kern_return_t
__unused struct vs_async *vsa)
{
panic("ps_write_device not supported");
+ return KERN_FAILURE;
}
#endif /* DEVICE_PAGING */
upl_t upl;
kern_return_t error = KERN_SUCCESS;
int size;
- int residual;
+ unsigned int residual;
unsigned int request_flags;
int seg_index;
int pages_in_cl;
}
while (cnt && (error == KERN_SUCCESS)) {
- int ps_info_valid;
- int page_list_count;
+ int ps_info_valid;
+ unsigned int page_list_count;
if((vs_offset & cl_mask) &&
(cnt > (VM_SUPER_CLUSTER -
failed_size = xfer_size;
if (error == KERN_SUCCESS) {
- if (residual == xfer_size) {
+ if ((signed) residual == xfer_size) {
/*
* If a read operation returns no error
* and no data moved, we turn it into
cl_size = pages_in_cl * vm_page_size;
if (!dp_internal) {
- int page_list_count;
+ unsigned int page_list_count;
int request_flags;
unsigned int super_size;
int first_dirty;
kern_return_t error = KERN_SUCCESS;
unsigned int size, size_wanted;
int i;
- unsigned int residual;
+ unsigned int residual = 0;
unsigned int unavail_size;
// default_pager_thread_t *dpt;
// boolean_t dealloc;
original_read_vsmap = *vsmap_ptr;
if(ps->ps_segtype == PS_PARTITION) {
+ panic("swap partition not supported\n");
+ /*NOTREACHED*/
+ error = KERN_FAILURE;
+ residual = size;
/*
NEED TO ISSUE WITH SYNC & NO COMMIT
error = ps_read_device(ps, actual_offset, &buffer,