diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:53:17 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:53:17 +0000 |
commit | 8c01aac81f9a7a3399f0e715600baab0b94d0a4c (patch) | |
tree | eed514e96cec1b788f29b10d1f06e9d43c521303 /nfs/ops.c | |
parent | 1584a9200a511a6ce330917be8dcaf957bb7c2e2 (diff) |
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* ops.c (netfs_get_dirents): Use munmap instead of vm_deallocate.
* pager.c (pager_read_page): Likewise.
Diffstat (limited to 'nfs/ops.c')
-rw-r--r-- | nfs/ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1694,8 +1694,8 @@ netfs_get_dirents (struct iouser *cred, struct node *np, all the pages, free the extra. */ if (allocsize > *datacnt && round_page (userdp - *data) < round_page (allocsize)) - vm_deallocate (mach_task_self (), round_page (userdp), - round_page (allocsize) - round_page (userdp - *data)); + munmap ((caddr_t) round_page (userdp), + round_page (allocsize) - round_page (userdp - *data)); *datacnt = userdp - *data; return 0; |