diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2002-06-05 13:44:44 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2002-06-05 13:44:44 +0000 |
commit | a64d7ead0057000050993edf99723aecf76f9e7e (patch) | |
tree | 418cc0eb8c40eec626b0917b2990df1f56ba4d4e /ext2fs/pager.c | |
parent | cb387b25d318025c67c422d509253d824a7764f1 (diff) |
2002-04-05 Neal H Walfield <neal@cs.uml.edu>
* pager.c (diskfs_grow): Correctly recalculate NEW_SIZE.
Diffstat (limited to 'ext2fs/pager.c')
-rw-r--r-- | ext2fs/pager.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = |