1 |
/* Pager for ufs |
/* Pager for ufs |
2 |
Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation |
Copyright (C) 1994,1995,1996,1997,1999,2005 Free Software Foundation Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
5 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
425 |
return err; |
return err; |
426 |
} |
} |
427 |
|
|
428 |
|
void |
429 |
|
pager_notify_evict (struct user_pager_info *pager, |
430 |
|
vm_offset_t page) |
431 |
|
{ |
432 |
|
assert (!"unrequested notification on eviction"); |
433 |
|
} |
434 |
|
|
435 |
/* Implement the pager_report_extent callback from the pager library. See |
/* Implement the pager_report_extent callback from the pager library. See |
436 |
<hurd/pager.h> for the interface description. */ |
<hurd/pager.h> for the interface description. */ |
437 |
inline error_t |
inline error_t |
484 |
upi->type = DISK; |
upi->type = DISK; |
485 |
upi->np = 0; |
upi->np = 0; |
486 |
pager_bucket = ports_create_bucket (); |
pager_bucket = ports_create_bucket (); |
487 |
diskfs_start_disk_pager (upi, pager_bucket, MAY_CACHE, store->size, |
diskfs_start_disk_pager (upi, pager_bucket, MAY_CACHE, 0, store->size, |
488 |
&disk_image); |
&disk_image); |
489 |
upi->p = diskfs_disk_pager; |
upi->p = diskfs_disk_pager; |
490 |
} |
} |
577 |
upi->unlocked_pagein_length = 0; |
upi->unlocked_pagein_length = 0; |
578 |
diskfs_nref_light (np); |
diskfs_nref_light (np); |
579 |
upi->p = pager_create (upi, pager_bucket, |
upi->p = pager_create (upi, pager_bucket, |
580 |
MAY_CACHE, MEMORY_OBJECT_COPY_DELAY); |
MAY_CACHE, MEMORY_OBJECT_COPY_DELAY, 0); |
581 |
if (upi->p == 0) |
if (upi->p == 0) |
582 |
{ |
{ |
583 |
diskfs_nrele_light (np); |
diskfs_nrele_light (np); |