summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext2fs/ChangeLog4
-rw-r--r--ext2fs/pager.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ext2fs/ChangeLog b/ext2fs/ChangeLog
index fa3c1fa7..0a6d6b30 100644
--- a/ext2fs/ChangeLog
+++ b/ext2fs/ChangeLog
@@ -1,3 +1,7 @@
+2002-04-05 Neal H Walfield <neal@cs.uml.edu>
+
+ * pager.c (diskfs_grow): Correctly recalculate NEW_SIZE.
+
2002-05-29 Roland McGrath <roland@frob.com>
* dir.c (dirscanblock): Use %z format.
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 =