projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net:ethernet:aquantia: Remove adapter re-opening when MTU changed.
[linux-2.6-block.git]
/
mm
/
vmacache.c
diff --git
a/mm/vmacache.c
b/mm/vmacache.c
index 035fdeb35b43b936a0e247f3e7b658caf55e9404..7ffa0ee341b5dab136b34d4d79c54a040569ada0 100644
(file)
--- a/
mm/vmacache.c
+++ b/
mm/vmacache.c
@@
-1,7
+1,8
@@
/*
* Copyright (C) 2014 Davidlohr Bueso.
*/
/*
* Copyright (C) 2014 Davidlohr Bueso.
*/
-#include <linux/sched.h>
+#include <linux/sched/signal.h>
+#include <linux/sched/task.h>
#include <linux/mm.h>
#include <linux/vmacache.h>
#include <linux/mm.h>
#include <linux/vmacache.h>
@@
-60,7
+61,7
@@
static inline bool vmacache_valid_mm(struct mm_struct *mm)
void vmacache_update(unsigned long addr, struct vm_area_struct *newvma)
{
if (vmacache_valid_mm(newvma->vm_mm))
void vmacache_update(unsigned long addr, struct vm_area_struct *newvma)
{
if (vmacache_valid_mm(newvma->vm_mm))
- current->vmacache[VMACACHE_HASH(addr)] = newvma;
+ current->vmacache
.vmas
[VMACACHE_HASH(addr)] = newvma;
}
static bool vmacache_valid(struct mm_struct *mm)
}
static bool vmacache_valid(struct mm_struct *mm)
@@
-71,12
+72,12
@@
static bool vmacache_valid(struct mm_struct *mm)
return false;
curr = current;
return false;
curr = current;
- if (mm->vmacache_seqnum != curr->vmacache
_
seqnum) {
+ if (mm->vmacache_seqnum != curr->vmacache
.
seqnum) {
/*
* First attempt will always be invalid, initialize
* the new cache for this task here.
*/
/*
* First attempt will always be invalid, initialize
* the new cache for this task here.
*/
- curr->vmacache
_
seqnum = mm->vmacache_seqnum;
+ curr->vmacache
.
seqnum = mm->vmacache_seqnum;
vmacache_flush(curr);
return false;
}
vmacache_flush(curr);
return false;
}
@@
-93,7
+94,7
@@
struct vm_area_struct *vmacache_find(struct mm_struct *mm, unsigned long addr)
return NULL;
for (i = 0; i < VMACACHE_SIZE; i++) {
return NULL;
for (i = 0; i < VMACACHE_SIZE; i++) {
- struct vm_area_struct *vma = current->vmacache[i];
+ struct vm_area_struct *vma = current->vmacache
.vmas
[i];
if (!vma)
continue;
if (!vma)
continue;
@@
-121,7
+122,7
@@
struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm,
return NULL;
for (i = 0; i < VMACACHE_SIZE; i++) {
return NULL;
for (i = 0; i < VMACACHE_SIZE; i++) {
- struct vm_area_struct *vma = current->vmacache[i];
+ struct vm_area_struct *vma = current->vmacache
.vmas
[i];
if (vma && vma->vm_start == start && vma->vm_end == end) {
count_vm_vmacache_event(VMACACHE_FIND_HITS);
if (vma && vma->vm_start == start && vma->vm_end == end) {
count_vm_vmacache_event(VMACACHE_FIND_HITS);