lkml.org 
[lkml]   [2010]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[Patch 04/25] GRU - mmap gru contexts using nonlinear
    From: Jack Steiner <steiner@sgi.com>

    Add VM_NONLINEAR to the vm_flags used to map the GRU.

    Signed-off-by: Jack Steiner <steiner@sgi.com>

    ---
    drivers/misc/sgi-gru/grufile.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux/drivers/misc/sgi-gru/grufile.c
    ===================================================================
    --- linux.orig/drivers/misc/sgi-gru/grufile.c 2010-06-09 08:11:39.751457793 -0500
    +++ linux/drivers/misc/sgi-gru/grufile.c 2010-06-09 08:11:40.740099769 -0500
    @@ -110,7 +110,7 @@ static int gru_file_mmap(struct file *fi

    vma->vm_flags |=
    (VM_IO | VM_DONTCOPY | VM_LOCKED | VM_DONTEXPAND | VM_PFNMAP |
    - VM_RESERVED);
    + VM_RESERVED | VM_NONLINEAR);
    vma->vm_page_prot = PAGE_SHARED;
    vma->vm_ops = &gru_vm_ops;



    \
     
     \ /
      Last update: 2010-07-19 23:47    [W:0.019 / U:29.092 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site