diff options
author | Miles Bader <miles@gnu.org> | 1995-05-03 18:56:23 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-05-03 18:56:23 +0000 |
commit | 661c02ae8420eeeadc32b3a7bf1e99afa777ef80 (patch) | |
tree | a96c3cca3658fef4090a29a39fbe71e5198090e5 | |
parent | 216075963e812e2d7c9ddf752b679ea4d4f359cd (diff) |
Formerly pager.c.~27~
-rw-r--r-- | ext2fs/pager.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext2fs/pager.c b/ext2fs/pager.c index c451d7ae..dc0f5971 100644 --- a/ext2fs/pager.c +++ b/ext2fs/pager.c @@ -101,8 +101,11 @@ file_pager_read_page (struct node *node, vm_offset_t page, /* First read, make the returned page be our buffer. */ *buf = new_buf; else - /* We've already got some buffer, so copy into it. */ - bcopy ((char *)*buf + offs, (char *)new_buf, length); + { + /* We've already got some buffer, so copy into it. */ + bcopy ((char *)new_buf, (char *)*buf + offs, length); + vm_deallocate (mach_task_self (), new_buf, length); + } offs += length; num_pending_blocks = 0; |