summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2006-10-22 04:28:14 +0000
committeralc <alc@FreeBSD.org>2006-10-22 04:28:14 +0000
commitcbcb760109a202fb847f48aa942a8b84b1e85015 (patch)
tree4eda40daa4f02d9dd3c07a7a5c1c6363ac1f7f37 /sys/kern/kern_exec.c
parentab1a7ca9a2ebaf9bec6c13a545bd4c209c969ee7 (diff)
downloadFreeBSD-src-cbcb760109a202fb847f48aa942a8b84b1e85015.zip
FreeBSD-src-cbcb760109a202fb847f48aa942a8b84b1e85015.tar.gz
Replace PG_BUSY with VPO_BUSY. In other words, changes to the page's
busy flag, i.e., VPO_BUSY, are now synchronized by the per-vm object lock instead of the global page queues lock.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 9bd3104..97825cb 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -827,7 +827,7 @@ exec_map_first_page(imgp)
if ((ma[i] = vm_page_lookup(object, i)) != NULL) {
if (ma[i]->valid)
break;
- if ((ma[i]->flags & PG_BUSY) || ma[i]->busy)
+ if ((ma[i]->oflags & VPO_BUSY) || ma[i]->busy)
break;
vm_page_lock_queues();
vm_page_busy(ma[i]);
OpenPOWER on IntegriCloud