]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rmap: recompute pgoff for unmapping huge page
authorHillf Danton <dhillf@gmail.com>
Wed, 20 Mar 2013 04:07:08 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:28:25 +0000 (16:28 +1100)
commitcc3481a95ccec5592978897ee141b295052649e2
treecef0e6ed8b248e44576e7ea46a790674f098bf25
parent3aae5e87c19c14d07e7e37e9639e571e2308d794
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