lkml.org 
[lkml]   [2005]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: Hugepages demand paging V2 [1/8]: hugetlb fault handler
    From
    Hi,

    > ChangeLog
    > * provide huge page fault handler and related things

    <snip>

    > Index: linux-2.6.9/fs/hugetlbfs/inode.c
    > ===================================================================
    > --- linux-2.6.9.orig/fs/hugetlbfs/inode.c 2004-10-18 14:55:07.000000000 -0700
    > +++ linux-2.6.9/fs/hugetlbfs/inode.c 2004-10-21 14:50:14.000000000 -0700
    > @@ -79,10 +79,6 @@
    > if (!(vma->vm_flags & VM_WRITE) && len > inode->i_size)
    > goto out;
    >
    > - ret = hugetlb_prefault(mapping, vma);
    > - if (ret)
    > - goto out;
    > -
    > if (inode->i_size < len)
    > inode->i_size = len;
    > out:

    hugetlbfs_file_mmap() may fail with a weird error, as it returns
    uninitialized variable "ret".


    Thanks.
    Hirokazu Takahashi.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:09    [W:0.020 / U:0.600 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site