Removed never read VMCache::scan_skip.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37195 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-06-21 15:10:37 +00:00
parent 94226016cc
commit 13638944db
3 changed files with 0 additions and 25 deletions
-1
View File
@@ -171,7 +171,6 @@ public:
// TODO: Remove!
uint32 page_count;
uint32 temporary : 1;
uint32 scan_skip : 1;
uint32 type : 6;
#if DEBUG_CACHE_LIST
-2
View File
@@ -593,7 +593,6 @@ VMCache::Init(uint32 cacheType, uint32 allocationFlags)
virtual_end = 0;
committed_size = 0;
temporary = 0;
scan_skip = 0;
page_count = 0;
type = cacheType;
fPageEventWaiters = NULL;
@@ -1282,7 +1281,6 @@ VMCache::Dump(bool showPages) const
kprintf(" virtual_base: 0x%Lx\n", virtual_base);
kprintf(" virtual_end: 0x%Lx\n", virtual_end);
kprintf(" temporary: %ld\n", temporary);
kprintf(" scan_skip: %ld\n", scan_skip);
kprintf(" lock: %p\n", &fLock);
#if KDEBUG
kprintf(" lock.holder: %ld\n", fLock.holder);
-22
View File
@@ -789,7 +789,6 @@ map_backing_store(VMAddressSpace* addressSpace, VMCache* cache, off_t offset,
newCache->Lock();
newCache->temporary = 1;
newCache->scan_skip = cache->scan_skip;
newCache->virtual_base = offset;
newCache->virtual_end = offset + size;
@@ -995,7 +994,6 @@ vm_block_address_range(const char* name, void* address, addr_t size)
cache->temporary = 1;
cache->virtual_end = size;
cache->scan_skip = 1;
cache->Lock();
VMArea* area;
@@ -1228,18 +1226,6 @@ vm_create_anonymous_area(team_id team, const char *name, addr_t size,
// TODO: This should be done via a method.
reservedMemory = 0;
switch (wiring) {
case B_LAZY_LOCK:
case B_FULL_LOCK:
case B_CONTIGUOUS:
case B_ALREADY_WIRED:
cache->scan_skip = 1;
break;
case B_NO_LOCK:
cache->scan_skip = 0;
break;
}
cache->Lock();
status = map_backing_store(addressSpace, cache, 0, name, size, wiring,
@@ -1436,8 +1422,6 @@ vm_map_physical_memory(team_id team, const char* name, void** _address,
if (status != B_OK)
return status;
// tell the page scanner to skip over this area, it's pages are special
cache->scan_skip = 1;
cache->virtual_end = size;
cache->Lock();
@@ -1553,8 +1537,6 @@ vm_map_physical_memory_vecs(team_id team, const char* name, void** _address,
if (result != B_OK)
return result;
// tell the page scanner to skip over this area, it's pages are special
cache->scan_skip = 1;
cache->virtual_end = size;
cache->Lock();
@@ -1639,9 +1621,6 @@ vm_create_null_area(team_id team, const char* name, void** address,
if (status != B_OK)
return status;
// tell the page scanner to skip over this area, no pages will be mapped
// here
cache->scan_skip = 1;
cache->temporary = 1;
cache->virtual_end = size;
@@ -2162,7 +2141,6 @@ vm_copy_on_write_area(VMCache* lowerCache)
upperCache->Lock();
upperCache->temporary = 1;
upperCache->scan_skip = lowerCache->scan_skip;
upperCache->virtual_base = lowerCache->virtual_base;
upperCache->virtual_end = lowerCache->virtual_end;