diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-09-07 20:15:30 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-09-07 20:15:30 +0000 |
commit | d870eef11536ff9b8b1e057811aefade9c111bee (patch) | |
tree | 184f20f788a988ad8e41d7381ce037ff8277e6dd /sys/uvm/uvm_vnode.c | |
parent | 653e038f4e286aadac796ed6c0cce53819bcb399 (diff) |
Convert bzero to memset(X, 0..) and bcopy to memcpy.
This is to match (make diffs smaller) the code in NetBSD.
new gcc inlines those functions, so this could also be a performance win.
Diffstat (limited to 'sys/uvm/uvm_vnode.c')
-rw-r--r-- | sys/uvm/uvm_vnode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/uvm/uvm_vnode.c b/sys/uvm/uvm_vnode.c index 6dc5f6d8b16..dcee6daf225 100644 --- a/sys/uvm/uvm_vnode.c +++ b/sys/uvm/uvm_vnode.c @@ -1734,7 +1734,7 @@ uvn_io(uvn, pps, npages, flags, rw) if (wanted && got == 0) { result = EIO; /* XXX: error? */ } else if (got < PAGE_SIZE * npages && rw == UIO_READ) { - bzero((void *) (kva + got), + memset((void *) (kva + got), 0, (npages << PAGE_SHIFT) - got); } } |