]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hugetlb.c: undo change to page mapcount in fault handler
authorHillf Danton <dhillf@gmail.com>
Fri, 20 Jan 2012 22:34:13 +0000 (14:34 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 23 Jan 2012 16:38:48 +0000 (08:38 -0800)
commit75c556a10f8528dba8ba6b6248dceffe77a64aa8
treea410c7c9c5a58643da7b4c2abdb7796d1255f048
parent1a24d9d548dd3aa164fc75aed6b9b6d5a1270d1f
mm/hugetlb.c: undo change to page mapcount in fault handler

Page mapcount should be updated only if we are sure that the page ends
up in the page table otherwise we would leak if we couldn't COW due to
reservations or if idx is out of bounds.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c