lkml.org 
[lkml]   [2011]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm: hugetlb: fix pgoff computation when unmapping page from vma
On Tue, 20 Dec 2011 21:45:51 +0800
Hillf Danton <dhillf@gmail.com> wrote:

> The computation for pgoff is incorrect, at least with
>
> (vma->vm_pgoff >> PAGE_SHIFT)
>
> involved. It is fixed with the available method if HPAGE_SIZE is concerned in
> page cache lookup.
>
> Cc: Michal Hocko <mhocko@suse.cz>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Signed-off-by: Hillf Danton <dhillf@gmail.com>

Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>



\
 
 \ /
  Last update: 2011-12-21 03:49    [W:0.030 / U:0.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site