summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-05-01 17:12:17 +0000
committerMiles Bader <miles@gnu.org>1995-05-01 17:12:17 +0000
commitfe9bcc44440bd4c33d1a6334803a616f17805b13 (patch)
treea645150b97635e1d3ef4ae1ef1ce6033545a2f35
parentb185ddbaa2e612e6b78548c443c954ed15700693 (diff)
Formerly pager.c.~25~
-rw-r--r--ext2fs/pager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext2fs/pager.c b/ext2fs/pager.c
index 0de4261f..be88d29d 100644
--- a/ext2fs/pager.c
+++ b/ext2fs/pager.c
@@ -423,7 +423,7 @@ pager_unlock_page (struct user_pager_info *pager, vm_offset_t page)
#ifdef EXT2FS_DEBUG
if (dn->last_page_partially_writable)
- ext2_debug ("made page %u[%u] in inode %d partially writable",
+ ext2_debug ("made page %u[%lu] in inode %d partially writable",
page, node->allocsize - page, dn->number);
else
ext2_debug ("made page %u[%u] in inode %d writable",
@@ -454,7 +454,7 @@ diskfs_grow (struct node *node, off_t size, struct protid *cred)
error_t err;
struct disknode *dn = node->dn;
vm_offset_t old_size = node->allocsize;
- vm_offset_t new_size = trunc_block (size) + block_size;
+ vm_offset_t new_size = round_block (size);
ext2_debug ("growing inode %d to %u bytes (from %u)", dn->number,
new_size, old_size);