* Re: + mm-hugetlb-fix-pgoff-computation-when-unmapping-page-from-vma-fix.patch added to -mm tree
[not found] <20111220231716.94B8D5C0050@hpza9.eem.corp.google.com>
@ 2011-12-21 6:47 ` Michal Hocko
0 siblings, 0 replies; only message in thread
From: Michal Hocko @ 2011-12-21 6:47 UTC (permalink / raw)
To: akpm
Cc: mm-commits, aarcange, dhillf, kamezawa.hiroyu, mel, rientjes, linux-mm
On Tue 20-12-11 15:17:15, Andrew Morton wrote:
> From: Andrew Morton <akpm@linux-foundation.org>
> Subject: mm-hugetlb-fix-pgoff-computation-when-unmapping-page-from-vma-fix
>
> use vma_hugecache_offset() directly, per Michal
>
> Cc: Andrea Arcangeli <aarcange@redhat.com>
> Cc: David Rientjes <rientjes@google.com>
> Cc: Hillf Danton <dhillf@gmail.com>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> Cc: Michal Hocko <mhocko@suse.cz>
> Cc: Mel Gorman <mel@csn.ul.ie>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
>
> mm/hugetlb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN mm/hugetlb.c~mm-hugetlb-fix-pgoff-computation-when-unmapping-page-from-vma-fix mm/hugetlb.c
> --- a/mm/hugetlb.c~mm-hugetlb-fix-pgoff-computation-when-unmapping-page-from-vma-fix
> +++ a/mm/hugetlb.c
> @@ -2315,7 +2315,7 @@ static int unmap_ref_private(struct mm_s
> * from page cache lookup which is in HPAGE_SIZE units.
> */
> address = address & huge_page_mask(h);
> - pgoff = linear_hugepage_index(vma, address);
> + pgoff = vma_hugecache_offset(hstate, vma, address);
You wanted
+ pgoff = vma_hugecache_offset(h, vma, address);
right?
> mapping = (struct address_space *)page_private(page);
>
> /*
--
Michal Hocko
SUSE Labs
SUSE LINUX s.r.o.
Lihovarska 1060/12
190 00 Praha 9
Czech Republic
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-21 6:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20111220231716.94B8D5C0050@hpza9.eem.corp.google.com>
2011-12-21 6:47 ` + mm-hugetlb-fix-pgoff-computation-when-unmapping-page-from-vma-fix.patch added to -mm tree Michal Hocko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox