diff options
author | Miles Bader <miles@gnu.org> | 1995-10-13 23:19:13 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-10-13 23:19:13 +0000 |
commit | 8c1ffd895f4cee0c588d3b8e123d0ef5ca979b76 (patch) | |
tree | 1c5acf2dae7a2335e4d078a035caed9ab7cc3620 /ufs/pager.c | |
parent | 4ae13415cd988b751cba08b7431c18d31e249be8 (diff) |
(pager_unlock_page, pager_write_page, pager_read_page):
Use diskfs_device_{read,write}_synce instead of dev_{read,write}_sync.
(pager_report_extent): Calculate the pager size.
Diffstat (limited to 'ufs/pager.c')
-rw-r--r-- | ufs/pager.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ufs/pager.c b/ufs/pager.c index 51cfc6f3..3456d404 100644 --- a/ufs/pager.c +++ b/ufs/pager.c @@ -110,7 +110,7 @@ pager_read_page (struct user_pager_info *pager, if (addr) { - err = dev_read_sync (addr, (void *)buf, disksize); + err = diskfs_device_read_sync (addr, (void *)buf, disksize); if (!err && disksize != __vm_page_size) bzero ((void *)(*buf + disksize), __vm_page_size - disksize); *writelock = 0; @@ -148,7 +148,7 @@ pager_write_page (struct user_pager_info *pager, return err; if (addr) - err = dev_write_sync (addr, buf, disksize); + err = diskfs_device_write_sync (addr, buf, disksize); else { printf ("Attempt to write unallocated disk\n."); @@ -321,7 +321,8 @@ pager_unlock_page (struct user_pager_info *pager, if (err) goto out; - dev_write_sync (fsbtodb (sblock, bno), zeroblock, sblock->fs_bsize); + diskfs_device_write_sync (fsbtodb (sblock, bno), + zeroblock, sblock->fs_bsize); indirs[0].bno = siblock[indirs[0].offset] = bno; record_poke (siblock, sblock->fs_bsize); @@ -346,7 +347,7 @@ pager_report_extent (struct user_pager_info *pager, *offset = 0; if (pager->type == DISK) - *size = diskpagersize; + *size = diskfs_device_size << diskfs_log2_device_block_size; else *size = pager->np->allocsize; |