]> 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)
commit8a422fbbb35c60ba953040665fa6c1b4fde17436
treea410c7c9c5a58643da7b4c2abdb7796d1255f048
parentfea4b9558cdace84b56cea3cbc29cb7a90559d12
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