summaryrefslogtreecommitdiff
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2012-01-21 02:34:13 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-23 20:38:48 +0400
commit409eb8c2611b4310947a150af988111f7f52ab15 (patch)
treea410c7c9c5a58643da7b4c2abdb7796d1255f048 /mm/shmem.c
parent6568d4a9c9ff16d6c4f0b14dfea567806ce579e4 (diff)
downloadlinux-409eb8c2611b4310947a150af988111f7f52ab15.tar.xz
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>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions