summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksym Planeta <mcsim.planeta@gmail.com>2012-09-30 17:47:19 +0300
committerMaksym Planeta <mcsim.planeta@gmail.com>2012-09-30 17:47:19 +0300
commiteaf688785757c072fb3d6a3110625bf0639654b3 (patch)
tree653c3d58c2c8043f781782e5d27d4e3ae27252e7
parent9983c0e74df5b5f8f8227eb763519bd094a5a8a4 (diff)
Update libdiskfs according to changes in libpager.
* libdiskfs/disk-pager.c (diskfs_start_disk_pager): Function changed to use new libpager interface. * libdiskfs/disk-pager.h (diskfs_start_disk_pager): Prototype changed.
-rw-r--r--libdiskfs/disk-pager.c4
-rw-r--r--libdiskfs/diskfs-pager.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/libdiskfs/disk-pager.c b/libdiskfs/disk-pager.c
index fefd2ef4..007e6381 100644
--- a/libdiskfs/disk-pager.c
+++ b/libdiskfs/disk-pager.c
@@ -45,7 +45,7 @@ service_paging_requests (any_t arg)
}
void
-diskfs_start_disk_pager (struct user_pager_info *upi,
+diskfs_start_disk_pager (struct pager_ops *ops, size_t upi_size,
struct port_bucket *pager_bucket, int may_cache,
size_t size, void **image)
{
@@ -57,7 +57,7 @@ diskfs_start_disk_pager (struct user_pager_info *upi,
(any_t)pager_bucket));
/* Create the pager. */
- diskfs_disk_pager = pager_create (upi, pager_bucket,
+ diskfs_disk_pager = pager_create (ops, upi_size, pager_bucket,
may_cache, MEMORY_OBJECT_COPY_NONE);
assert (diskfs_disk_pager);
diff --git a/libdiskfs/diskfs-pager.h b/libdiskfs/diskfs-pager.h
index 4ec0b27b..b9da8a62 100644
--- a/libdiskfs/diskfs-pager.h
+++ b/libdiskfs/diskfs-pager.h
@@ -32,8 +32,9 @@
below works. SIZE should be the size of the image to map, and the address
mapped is returned in IMAGE. INFO, PAGER_BUCKET, & MAY_CACHE are passed
to `pager_create'. */
-extern void diskfs_start_disk_pager (struct user_pager_info *info,
- struct port_bucket *pager_bucket, int may_cache,
+extern void diskfs_start_disk_pager (struct pager_ops *ops, size_t upi_size,
+ struct port_bucket *pager_bucket,
+ int may_cache,
size_t size, void **image);
extern struct pager *diskfs_disk_pager;