From d36b9aef3edc3fb15cea5a29f51d83a1ac4168d1 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 20 Feb 2010 12:29:42 +0000 Subject: [PATCH] Added vm_page::IsMapped() for convenience. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35531 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/vm/vm_types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/headers/private/kernel/vm/vm_types.h b/headers/private/kernel/vm/vm_types.h index 178f196e7a..defe2947ff 100644 --- a/headers/private/kernel/vm/vm_types.h +++ b/headers/private/kernel/vm/vm_types.h @@ -121,6 +121,9 @@ public: VMCache* Cache() const { return cache_ref != NULL ? cache_ref->cache : NULL; } + + bool IsMapped() const + { return wired_count > 0 || !mappings.IsEmpty(); } };