diff options
author | Miles Bader <miles@gnu.org> | 1995-05-01 14:35:31 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-05-01 14:35:31 +0000 |
commit | 10aebcaada1d1403ce9ad72eeccd3ca8777a5621 (patch) | |
tree | 312bb50756726c4edd2407ac21c7faa771c09766 | |
parent | 4a31c277acb1a4936aad5ee11e1a5bf82bc1eb67 (diff) |
Formerly getblk.c.~15~
-rw-r--r-- | ext2fs/getblk.c | 5 |
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; |