summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_pageout.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2007-11-25 20:37:29 +0000
committeralc <alc@FreeBSD.org>2007-11-25 20:37:29 +0000
commit625e38eddc8b523d10948382f838410bcea38748 (patch)
tree364366c6cc52df834ec3c2828985b5fef1a6d111 /sys/vm/vm_pageout.h
parentfe29db8e3b4c220b99a7cb801aa9de3d1db113a4 (diff)
downloadFreeBSD-src-625e38eddc8b523d10948382f838410bcea38748.zip
FreeBSD-src-625e38eddc8b523d10948382f838410bcea38748.tar.gz
Make contigmalloc(9)'s page laundering more robust. Specifically, use
vm_pageout_fallback_object_lock() in vm_contig_launder_page() to better handle a lock-ordering problem. Consequently, trylock's failure on the page's containing object no longer implies that the page cannot be laundered. MFC after: 6 weeks
Diffstat (limited to 'sys/vm/vm_pageout.h')
-rw-r--r--sys/vm/vm_pageout.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/vm/vm_pageout.h b/sys/vm/vm_pageout.h
index 1b74fab..1586ac4 100644
--- a/sys/vm/vm_pageout.h
+++ b/sys/vm/vm_pageout.h
@@ -98,6 +98,7 @@ extern void vm_wait(void);
extern void vm_waitpfault(void);
#ifdef _KERNEL
+boolean_t vm_pageout_fallback_object_lock(vm_page_t, vm_page_t *);
int vm_pageout_flush(vm_page_t *, int, int);
#endif
#endif /* _VM_VM_PAGEOUT_H_ */
OpenPOWER on IntegriCloud