Hugh Dickins 1c59827d1d [PATCH] mm: hugetlb truncation fixes
hugetlbfs allows truncation of its files (should it?), but hugetlb.c often
forgets that: crashes and misaccounting ensue.

copy_hugetlb_page_range better grab the src page_table_lock since we don't
want to guess what happens if concurrently truncated.  unmap_hugepage_range
rss accounting must not assume the full range was mapped.  follow_hugetlb_page
must guard with page_table_lock and be prepared to exit early.

Restyle copy_hugetlb_page_range with a for loop like the others there.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-19 23:04:30 -07:00
..
2005-07-15 09:54:50 -07:00
2005-06-24 00:06:41 -07:00
2005-10-19 23:04:30 -07:00
2005-04-16 15:20:36 -07:00
2005-09-17 11:50:01 -07:00
2005-06-24 00:06:41 -07:00
2005-04-16 15:20:36 -07:00
2005-06-21 18:46:21 -07:00
2005-10-08 15:00:57 -07:00
2005-04-16 15:20:36 -07:00
2005-09-05 00:05:43 -07:00
2005-10-08 15:00:57 -07:00
2005-10-08 15:00:57 -07:00
2005-04-16 15:20:36 -07:00
2005-09-22 22:17:37 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00