summaryrefslogtreecommitdiff
path: root/ufs
diff options
context:
space:
mode:
Diffstat (limited to 'ufs')
-rw-r--r--ufs/hyper.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ufs/hyper.c b/ufs/hyper.c
index 36d71728..0aab1819 100644
--- a/ufs/hyper.c
+++ b/ufs/hyper.c
@@ -128,11 +128,13 @@ diskfs_set_hypermetadata (int wait, int clean)
bufsize = round_page (fragroundup (sblock, sblock->fs_cssize));
- err = dev_read_sync (fsbtodb (sblock, sblock->fs_csaddr), &buf, bufsize);
+ err = diskfs_device_read_sync (fsbtodb (sblock, sblock->fs_csaddr),
+ &buf, bufsize);
if (!err)
{
bcopy (csum, (void *) buf, sblock->fs_cssize);
- dev_write_sync (fsbtodb (sblock, sblock->fs_csaddr), buf, bufsize);
+ diskfs_device_write_sync (fsbtodb (sblock, sblock->fs_csaddr),
+ buf, bufsize);
csum_dirty = 0;
vm_deallocate (mach_task_self (), buf, bufsize);
}