summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext2fs/getblk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext2fs/getblk.c b/ext2fs/getblk.c
index 23496183..22961e36 100644
--- a/ext2fs/getblk.c
+++ b/ext2fs/getblk.c
@@ -60,6 +60,9 @@ ext2_discard_prealloc (struct node *node)
#endif
}
+/* Allocate a new block for the file NODE, as close to block GOAL as
+ possible, and return it, or 0 if none could be had. If ZERO is true, then
+ zero the block (and add it to NODE's list of modified indirect blocks). */
static block_t
ext2_alloc_block (struct node *node, block_t goal, int zero)
{
@@ -99,7 +102,7 @@ ext2_alloc_block (struct node *node, block_t goal, int zero)
{
char *bh = bptr (result);
bzero (bh, block_size);
- record_global_poke (bh);
+ record_indir_poke (node, bh);
}
return result;