diff options
author | Miles Bader <miles@gnu.org> | 1995-10-13 23:18:06 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-10-13 23:18:06 +0000 |
commit | f61ca041068bd161d5011d58518625f860e2cc25 (patch) | |
tree | 0f5fdfd136fda9ebca4bb855b379dc6462546e4e | |
parent | 975e0c9d698594d76b62be79788b4a0dacecab77 (diff) |
(diskfs_grow):
Use diskfs_device_{read,write}_synce instead of dev_{read,write}_sync.
-rw-r--r-- | ufs/sizes.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ufs/sizes.c b/ufs/sizes.c index 8fc0b029..f4f81393 100644 --- a/ufs/sizes.c +++ b/ufs/sizes.c @@ -411,7 +411,7 @@ diskfs_grow (struct node *np, record_poke (di, sizeof (struct dinode)); np->dn_set_ctime = 1; - dev_write_sync (fsbtodb (sblock, bno) + btodb (osize), + diskfs_device_write_sync (fsbtodb (sblock, bno) + btodb (osize), zeroblock, sblock->fs_bsize - osize); if (bno != old_pbn) @@ -446,7 +446,7 @@ diskfs_grow (struct node *np, record_poke (di, sizeof (struct dinode)); np->dn_set_ctime = 1; - dev_write_sync (fsbtodb (sblock, bno) + btodb (osize), + diskfs_device_write_sync (fsbtodb (sblock, bno) + btodb (osize), zeroblock, size - osize); if (bno != old_pbn) @@ -472,7 +472,7 @@ diskfs_grow (struct node *np, record_poke (di, sizeof (struct dinode)); np->dn_set_ctime = 1; - dev_write_sync (fsbtodb (sblock, bno), zeroblock, size); + diskfs_device_write_sync (fsbtodb (sblock, bno), zeroblock, size); } } else @@ -562,7 +562,8 @@ diskfs_grow (struct node *np, goto out; indirs[0].bno = siblock[indirs[0].offset] = bno; record_poke (siblock, sblock->fs_bsize); - dev_write_sync (fsbtodb (sblock, bno), zeroblock, sblock->fs_bsize); + diskfs_device_write_sync (fsbtodb (sblock, bno), + zeroblock, sblock->fs_bsize); } out: |