]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rmap: recompute pgoff for unmapping huge page
authorHillf Danton <dhillf@gmail.com>
Sun, 10 Mar 2013 10:54:46 +0000 (21:54 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 12 Mar 2013 03:56:30 +0000 (14:56 +1100)
commit8f365a2cb4ff2c9c1b2f1f5e4523f426fb82c8fd
treec35fe5f68266289d59c8be043827e4d7a9c61eb9
parentb3bcffc9ebc87f580cb817ef418b74e347019d10
rmap: recompute pgoff for unmapping huge page

We have to recompute pgoff if the given page is huge, since result based
on HPAGE_SIZE is not approapriate for scanning the vma interval tree, as
shown by commit 36e4f20af833 ("hugetlb: do not use vma_hugecache_offset()
for vma_prio_tree_foreach").

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Michel Lespinasse <walken@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/rmap.c