summaryrefslogtreecommitdiffstats
path: root/mm/page-writeback.c
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2012-01-11 00:08:19 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-11 01:30:45 +0100
commit0c176d52b0b2619f231b2bbf329b90c028134f58 (patch)
tree540d2b64a9efe0cd307c04fecedf72e5f3875260 /mm/page-writeback.c
parentmm/vmscan.c: consider swap space when deciding whether to continue reclaim (diff)
downloadlinux-0c176d52b0b2619f231b2bbf329b90c028134f58.tar.xz
linux-0c176d52b0b2619f231b2bbf329b90c028134f58.zip
mm: hugetlb: fix pgoff computation when unmapping page from vma
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. [akpm@linux-foundation.org: use vma_hugecache_offset() directly, per Michal] Signed-off-by: Hillf Danton <dhillf@gmail.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: Michal Hocko <mhocko@suse.cz> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: David Rientjes <rientjes@google.com> Reviewed-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions