summaryrefslogtreecommitdiff
path: root/ext2fs/getblk.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs/getblk.c')
-rw-r--r--ext2fs/getblk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext2fs/getblk.c b/ext2fs/getblk.c
index de3c2eb0..64e8a7e2 100644
--- a/ext2fs/getblk.c
+++ b/ext2fs/getblk.c
@@ -203,7 +203,9 @@ block_getblk (struct node *node,
((u32 *)bh)[nr] = block;
if (diskfs_synchronous || node->dn->info.i_osync)
- sync_disk_image (bh, block_size, 1);
+ sync_global_ptr (bh, 1);
+ else
+ pokel_add (&node->dn->pokel, bh, block_size);
node->dn_set_ctime = 1;
node->dn->info.i_next_alloc_block = new_block;