]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rmap: recompute pgoff for unmapping huge page
authorHillf Danton <dhillf@gmail.com>
Tue, 26 Mar 2013 23:24:21 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:04 +0000 (17:12 +1100)
commiteb1d2de8ecb216ff4f54004fe7ad8151674fdecc
tree29bc15abe48208779036bbd06a7142256195b0ca
parentdf1e29647d9dd8cd400c16d2bb539cda6b0642b3
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