Re: Hugepages demand paging V2 [1/8]: hugetlb fault handler

From: Hirokazu Takahashi
Date: Tue Jan 18 2005 - 07:27:58 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/