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:
@@ -171,7 +171,6 @@ public:
|
|||||||
// TODO: Remove!
|
// TODO: Remove!
|
||||||
uint32 page_count;
|
uint32 page_count;
|
||||||
uint32 temporary : 1;
|
uint32 temporary : 1;
|
||||||
uint32 scan_skip : 1;
|
|
||||||
uint32 type : 6;
|
uint32 type : 6;
|
||||||
|
|
||||||
#if DEBUG_CACHE_LIST
|
#if DEBUG_CACHE_LIST
|
||||||
|
|||||||
@@ -593,7 +593,6 @@ VMCache::Init(uint32 cacheType, uint32 allocationFlags)
|
|||||||
virtual_end = 0;
|
virtual_end = 0;
|
||||||
committed_size = 0;
|
committed_size = 0;
|
||||||
temporary = 0;
|
temporary = 0;
|
||||||
scan_skip = 0;
|
|
||||||
page_count = 0;
|
page_count = 0;
|
||||||
type = cacheType;
|
type = cacheType;
|
||||||
fPageEventWaiters = NULL;
|
fPageEventWaiters = NULL;
|
||||||
@@ -1282,7 +1281,6 @@ VMCache::Dump(bool showPages) const
|
|||||||
kprintf(" virtual_base: 0x%Lx\n", virtual_base);
|
kprintf(" virtual_base: 0x%Lx\n", virtual_base);
|
||||||
kprintf(" virtual_end: 0x%Lx\n", virtual_end);
|
kprintf(" virtual_end: 0x%Lx\n", virtual_end);
|
||||||
kprintf(" temporary: %ld\n", temporary);
|
kprintf(" temporary: %ld\n", temporary);
|
||||||
kprintf(" scan_skip: %ld\n", scan_skip);
|
|
||||||
kprintf(" lock: %p\n", &fLock);
|
kprintf(" lock: %p\n", &fLock);
|
||||||
#if KDEBUG
|
#if KDEBUG
|
||||||
kprintf(" lock.holder: %ld\n", fLock.holder);
|
kprintf(" lock.holder: %ld\n", fLock.holder);
|
||||||
|
|||||||
@@ -789,7 +789,6 @@ map_backing_store(VMAddressSpace* addressSpace, VMCache* cache, off_t offset,
|
|||||||
|
|
||||||
newCache->Lock();
|
newCache->Lock();
|
||||||
newCache->temporary = 1;
|
newCache->temporary = 1;
|
||||||
newCache->scan_skip = cache->scan_skip;
|
|
||||||
newCache->virtual_base = offset;
|
newCache->virtual_base = offset;
|
||||||
newCache->virtual_end = offset + size;
|
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->temporary = 1;
|
||||||
cache->virtual_end = size;
|
cache->virtual_end = size;
|
||||||
cache->scan_skip = 1;
|
|
||||||
cache->Lock();
|
cache->Lock();
|
||||||
|
|
||||||
VMArea* area;
|
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.
|
// TODO: This should be done via a method.
|
||||||
reservedMemory = 0;
|
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();
|
cache->Lock();
|
||||||
|
|
||||||
status = map_backing_store(addressSpace, cache, 0, name, size, wiring,
|
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)
|
if (status != B_OK)
|
||||||
return status;
|
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->virtual_end = size;
|
||||||
|
|
||||||
cache->Lock();
|
cache->Lock();
|
||||||
@@ -1553,8 +1537,6 @@ vm_map_physical_memory_vecs(team_id team, const char* name, void** _address,
|
|||||||
if (result != B_OK)
|
if (result != B_OK)
|
||||||
return result;
|
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->virtual_end = size;
|
||||||
|
|
||||||
cache->Lock();
|
cache->Lock();
|
||||||
@@ -1639,9 +1621,6 @@ vm_create_null_area(team_id team, const char* name, void** address,
|
|||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
return status;
|
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->temporary = 1;
|
||||||
cache->virtual_end = size;
|
cache->virtual_end = size;
|
||||||
|
|
||||||
@@ -2162,7 +2141,6 @@ vm_copy_on_write_area(VMCache* lowerCache)
|
|||||||
upperCache->Lock();
|
upperCache->Lock();
|
||||||
|
|
||||||
upperCache->temporary = 1;
|
upperCache->temporary = 1;
|
||||||
upperCache->scan_skip = lowerCache->scan_skip;
|
|
||||||
upperCache->virtual_base = lowerCache->virtual_base;
|
upperCache->virtual_base = lowerCache->virtual_base;
|
||||||
upperCache->virtual_end = lowerCache->virtual_end;
|
upperCache->virtual_end = lowerCache->virtual_end;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user