[Haiku-commits] r26650 - haiku/trunk/src/system/kernel/vm
bonefish at mail.berlios.de
bonefish at mail.berlios.de
Sun Jul 27 01:45:45 CEST 2008
Author: bonefish
Date: 2008-07-27 01:45:42 +0200 (Sun, 27 Jul 2008)
New Revision: 26650
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=26650&view=rev
Modified:
haiku/trunk/src/system/kernel/vm/vm.cpp
Log:
Removed pointless check. vm_page_allocate_page() only returns NULL, when
an invalid page state was supplied. The comment was misleading too,
as the pages weren't reserved upfront.
Modified: haiku/trunk/src/system/kernel/vm/vm.cpp
===================================================================
--- haiku/trunk/src/system/kernel/vm/vm.cpp 2008-07-26 23:40:13 UTC (rev 26649)
+++ haiku/trunk/src/system/kernel/vm/vm.cpp 2008-07-26 23:45:42 UTC (rev 26650)
@@ -1714,11 +1714,6 @@
continue;
#endif
vm_page *page = vm_page_allocate_page(PAGE_STATE_CLEAR, false);
- if (page == NULL) {
- // this shouldn't really happen, as we reserve the memory upfront
- panic("couldn't fulfill B_FULL lock!");
- }
-
cache->InsertPage(page, offset);
vm_map_page(area, page, address, protection);
}
More information about the Haiku-commits
mailing list