From 10aebcaada1d1403ce9ad72eeccd3ca8777a5621 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 1 May 1995 14:35:31 +0000 Subject: Formerly getblk.c.~15~ --- ext2fs/getblk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ext2fs/getblk.c') 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; -- cgit v1.2.3