]> git.hungrycats.org Git - linux/commitdiff
[PATCH] remove vm_area_struct.vm_raend
authorAndrew Morton <akpm@digeo.com>
Sat, 14 Dec 2002 11:19:46 +0000 (03:19 -0800)
committerJaroslav Kysela <perex@suse.cz>
Sat, 14 Dec 2002 11:19:46 +0000 (03:19 -0800)
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.

arch/ia64/kernel/perfmon.c
include/linux/mm.h
mm/madvise.c
mm/mmap.c
mm/mremap.c

index f31a02c27654527415ca9361d44d4f34de971063..7ec39ed57d52bc035bddd18b9e997e3a16699801 100644 (file)
@@ -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 */
 
        /*
index 7f92f6775eb2631e8596eca509f21b1a86542347..df49cb472866f9088cd6580499f0072cc546f036 100644 (file)
@@ -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) */
 };
 
index 5ff452899f41a6b1b1ee28bdb9a39a836b82727a..83a31a6ae11331f6b41d5e1f15f4023281beb334 100644 (file)
@@ -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) {
index 76800c94aaadd79036a703ee27e81b59e9cadf33..e10ec8a3a158f165c5b467d7759ab4af5abdadd4 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -559,7 +559,6 @@ munmap_back:
        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);
 
index 51e788b5b798f682ac94ed9325d8ae1f642e2235..0cd568fd86455934755c8db301fa99dc6b6e00a6 100644 (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)