From 5ccef75e02afa360480c05b8d01bdd8f2abc39bc Mon Sep 17 00:00:00 2001 From: dillon Date: Mon, 27 Mar 2000 21:33:32 +0000 Subject: Add necessary spl protection for swapper. The problem was located by Alfred while testing his SPLASSERT stuff. This is not a complete fix, more protections are probably needed. --- sys/vm/vm_pager.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'sys/vm/vm_pager.h') diff --git a/sys/vm/vm_pager.h b/sys/vm/vm_pager.h index c548231..3824c63 100644 --- a/sys/vm/vm_pager.h +++ b/sys/vm/vm_pager.h @@ -146,6 +146,17 @@ vm_pager_put_pages( (object, m, count, flags, rtvals); } +/* + * vm_pager_haspage + * + * Check to see if an object's pager has the requested page. The + * object's pager will also set before and after to give the caller + * some idea of the number of pages before and after the requested + * page can be I/O'd efficiently. + * + * This routine does not have to be called at any particular spl. + */ + static __inline boolean_t vm_pager_has_page( vm_object_t object, -- cgit v1.1