|
@@ -87,11 +87,11 @@ struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
|
|
|
|
|
|
+ count_vm_vmacache_event(VMACACHE_FIND_CALLS);
|
|
|
|
+
|
|
if (!vmacache_valid(mm))
|
|
if (!vmacache_valid(mm))
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
- count_vm_vmacache_event(VMACACHE_FIND_CALLS);
|
|
|
|
-
|
|
|
|
for (i = 0; i < VMACACHE_SIZE; i++) {
|
|
for (i = 0; i < VMACACHE_SIZE; i++) {
|
|
struct vm_area_struct *vma = current->vmacache[i];
|
|
struct vm_area_struct *vma = current->vmacache[i];
|
|
|
|
|
|
@@ -115,11 +115,11 @@ struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm,
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
|
|
|
|
|
|
+ count_vm_vmacache_event(VMACACHE_FIND_CALLS);
|
|
|
|
+
|
|
if (!vmacache_valid(mm))
|
|
if (!vmacache_valid(mm))
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
- count_vm_vmacache_event(VMACACHE_FIND_CALLS);
|
|
|
|
-
|
|
|
|
for (i = 0; i < VMACACHE_SIZE; i++) {
|
|
for (i = 0; i < VMACACHE_SIZE; i++) {
|
|
struct vm_area_struct *vma = current->vmacache[i];
|
|
struct vm_area_struct *vma = current->vmacache[i];
|
|
|
|
|