From c994698a5537939ecb3eda27ec6db21baad7015e Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 20 Apr 1995 14:39:56 +0000 Subject: Formerly getblk.c.~10~ --- ext2fs/getblk.c | 4 ++-- 1 file 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; -- cgit v1.2.3