From a64d7ead0057000050993edf99723aecf76f9e7e Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 5 Jun 2002 13:44:44 +0000 Subject: 2002-04-05 Neal H Walfield * pager.c (diskfs_grow): Correctly recalculate NEW_SIZE. --- ext2fs/pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext2fs/pager.c') diff --git a/ext2fs/pager.c b/ext2fs/pager.c index 4e705fea..0e45416a 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -646,7 +646,7 @@ diskfs_grow (struct node *node, off_t size, struct protid *cred) if (! err) /* Reflect how much we allocated successfully. */ - new_size = (end_block - 1) << log2_block_size; + new_size = end_block << log2_block_size; else /* See if it's still valid to say this. */ dn->last_page_partially_writable = -- cgit v1.2.3