summaryrefslogtreecommitdiff
path: root/ext2fs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-16 20:35:04 +0000
committerMiles Bader <miles@gnu.org>1995-04-16 20:35:04 +0000
commit3a01136bfcde02b95a28084daf7c2f97385d91ff (patch)
tree04a639394021d873697eaebc9e11188beef01a21 /ext2fs
parent3ce92f2fc14ebfff41e112138069a1637983be92 (diff)
Formerly getblk.c.~7~
Diffstat (limited to 'ext2fs')
-rw-r--r--ext2fs/getblk.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext2fs/getblk.c b/ext2fs/getblk.c
index 11c73802..b016874c 100644
--- a/ext2fs/getblk.c
+++ b/ext2fs/getblk.c
@@ -77,7 +77,7 @@ ext2_alloc_block (struct node *node, unsigned long goal)
ext2_debug ("preallocation hit (%lu/%lu).\n",
++alloc_hits, ++alloc_attempts);
- bh = block_image(result);
+ bh = bptr(result);
memset (bh, 0, block_size);
}
else
@@ -110,7 +110,7 @@ inode_getblk (struct node *node, int nr, int create, int new_block, char **buf)
block = node->dn->info.i_data[nr];
if (block)
{
- *buf = block_image(block);
+ *buf = bptr(block);
return 0;
}
@@ -144,7 +144,7 @@ inode_getblk (struct node *node, int nr, int create, int new_block, char **buf)
if (!block)
return EIO;
- *buf = block_image(block);
+ *buf = bptr(block);
node->dn->info.i_data[nr] = block;
node->dn->info.i_next_alloc_block = new_block;
@@ -172,7 +172,7 @@ block_getblk (struct node *node,
block = ((u32 *)bh)[nr];
if (block)
{
- *buf = block_image (block);
+ *buf = bptr (block);
return 0;
}
@@ -199,7 +199,7 @@ block_getblk (struct node *node,
if (!block)
return EIO; /* XXX? */
- *buf = block_image (block);
+ *buf = bptr (block);
((u32 *)bh)[nr] = block;
if (diskfs_synchronous || node->dn->info.i_osync)