diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-09-07 15:00:21 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-09-07 15:00:21 +0000 |
commit | 85ce33f47337d8ae2200b69c865bad9704a53564 (patch) | |
tree | 45c03da13cdd18d57180b1614667ab28a7a26012 /sys/uvm/uvm_amap.c | |
parent | 27eb8946aec561bdd8abb9e09db43d6f4093d59a (diff) |
Use M_ZERO in a few more places to shave bytes from the kernel.
eyeballed and ok dlg@
Diffstat (limited to 'sys/uvm/uvm_amap.c')
-rw-r--r-- | sys/uvm/uvm_amap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/uvm/uvm_amap.c b/sys/uvm/uvm_amap.c index ee105ed3b13..a3f74b64019 100644 --- a/sys/uvm/uvm_amap.c +++ b/sys/uvm/uvm_amap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_amap.c,v 1.39 2007/06/18 21:51:15 pedro Exp $ */ +/* $OpenBSD: uvm_amap.c,v 1.40 2007/09/07 15:00:20 art Exp $ */ /* $NetBSD: uvm_amap.c,v 1.27 2000/11/25 06:27:59 chs Exp $ */ /* @@ -902,7 +902,7 @@ amap_pp_establish(struct vm_amap *amap) { amap->am_ppref = malloc(sizeof(int) * amap->am_maxslot, - M_UVMAMAP, M_NOWAIT); + M_UVMAMAP, M_NOWAIT|M_ZERO); /* * if we fail then we just won't use ppref for this amap @@ -915,7 +915,6 @@ amap_pp_establish(struct vm_amap *amap) /* * init ppref */ - memset(amap->am_ppref, 0, sizeof(int) * amap->am_maxslot); pp_setreflen(amap->am_ppref, 0, amap->am_ref, amap->am_nslot); } |