summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-20 14:39:56 +0000
committerMiles Bader <miles@gnu.org>1995-04-20 14:39:56 +0000
commitc994698a5537939ecb3eda27ec6db21baad7015e (patch)
tree7bd3ff3de5f543a7a8ed28b8dd2604b7ad2aa2d0
parent4518d7869078e9ea14b58f2fe8fd3caf8e891bc0 (diff)
Formerly getblk.c.~10~
-rw-r--r--ext2fs/getblk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext2fs/getblk.c b/ext2fs/getblk.c
index 8beb7f6b..de3c2eb0 100644
--- a/ext2fs/getblk.c
+++ b/ext2fs/getblk.c
@@ -150,7 +150,7 @@ inode_getblk (struct node *node, int nr, int create, int new_block, char **buf)
node->dn->info.i_next_alloc_block = new_block;
node->dn->info.i_next_alloc_goal = block;
node->dn_set_ctime = 1;
- node->dn_stat.st_blocks += blocks;
+ node->dn_stat.st_blocks += blocks << log2_stat_blocks_per_fs_block;
node->dn_stat_dirty = 1;
if (diskfs_synchronous || node->dn->info.i_osync)
@@ -208,7 +208,7 @@ block_getblk (struct node *node,
node->dn_set_ctime = 1;
node->dn->info.i_next_alloc_block = new_block;
node->dn->info.i_next_alloc_goal = block;
- node->dn_stat.st_blocks += blocks;
+ node->dn_stat.st_blocks += blocks << log2_stat_blocks_per_fs_block;
node->dn_stat_dirty = 1;
return 0;