From 7601e552ca68a04530e3d007cd01d2e8863d5698 Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 29 Oct 2016 19:22:38 +0000 Subject: [PATCH] With one exception, "hardfault" is used like a "bool". Change that exception and make it a "bool". Reviewed by: kib MFC after: 7 days --- sys/vm/vm_fault.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/vm/vm_fault.c b/sys/vm/vm_fault.c index ed383bcf9740..94f188163576 100644 --- a/sys/vm/vm_fault.c +++ b/sys/vm/vm_fault.c @@ -295,20 +295,20 @@ vm_fault_hold(vm_map_t map, vm_offset_t vaddr, vm_prot_t fault_type, boolean_t dead, growstack, is_first_object_locked, wired; int map_generation; vm_object_t next_object; - int hardfault; struct faultstate fs; struct vnode *vp; vm_offset_t e_end, e_start; vm_page_t m; int ahead, behind, cluster_offset, error, locked, rv; u_char behavior; + bool hardfault; - hardfault = 0; growstack = TRUE; PCPU_INC(cnt.v_vm_faults); fs.vp = NULL; faultcount = 0; nera = -1; + hardfault = false; RetryFault:; @@ -708,7 +708,7 @@ RetryFault:; &behind, &ahead); if (rv == VM_PAGER_OK) { faultcount = behind + 1 + ahead; - hardfault++; + hardfault = true; break; /* break to PAGE HAS BEEN FOUND */ } if (rv == VM_PAGER_ERROR)