Commit 55478b6c authored by Andrew Morton's avatar Andrew Morton Committed by Jaroslav Kysela

[PATCH] remove vm_area_struct.vm_raend

Remove the unused vm_area_struct.vm_raend.

If someone wants to tune per-VMA readaround then they can alter
vma->vm_file->f_ra.ra_pages.
parent 5e352342
......@@ -783,7 +783,6 @@ pfm_smpl_buffer_alloc(pfm_context_t *ctx, unsigned long *which_pmds, unsigned lo
vma->vm_ops = &pfm_vm_ops; /* necesarry to get the close() callback */
vma->vm_pgoff = 0;
vma->vm_file = NULL;
vma->vm_raend = 0;
vma->vm_private_data = psb; /* information needed by the pfm_vm_close() function */
/*
......
......@@ -70,7 +70,6 @@ struct vm_area_struct {
unsigned long vm_pgoff; /* Offset (within vm_file) in PAGE_SIZE
units, *not* PAGE_CACHE_SIZE */
struct file * vm_file; /* File we map to (can be NULL). */
unsigned long vm_raend; /* XXX: put full readahead info here. */
void * vm_private_data; /* was vm_pte (shared mem) */
};
......
......@@ -32,7 +32,6 @@ static long madvise_behavior(struct vm_area_struct * vma, unsigned long start,
}
spin_lock(&mm->page_table_lock);
vma->vm_raend = 0;
VM_ClearReadHint(vma);
switch (behavior) {
......
......@@ -559,7 +559,6 @@ unsigned long do_mmap_pgoff(struct file * file, unsigned long addr,
vma->vm_pgoff = pgoff;
vma->vm_file = NULL;
vma->vm_private_data = NULL;
vma->vm_raend = 0;
INIT_LIST_HEAD(&vma->shared);
if (file) {
......@@ -1089,8 +1088,6 @@ int split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
new->vm_pgoff += ((addr - vma->vm_start) >> PAGE_SHIFT);
}
new->vm_raend = 0;
if (new->vm_file)
get_file(new->vm_file);
......
......@@ -233,7 +233,6 @@ static unsigned long move_vma(struct vm_area_struct * vma,
new_vma->vm_start = new_addr;
new_vma->vm_end = new_addr+new_len;
new_vma->vm_pgoff += (addr - vma->vm_start) >> PAGE_SHIFT;
new_vma->vm_raend = 0;
if (new_vma->vm_file)
get_file(new_vma->vm_file);
if (new_vma->vm_ops && new_vma->vm_ops->open)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment