Revision 1c59827d1da9bcd6970800d4f8a031b5859e8b4c authored by Hugh Dickins on 20 October 2005, 04:23:43 UTC, committed by Linus Torvalds on 20 October 2005, 06:04:30 UTC
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>
1 parent e03d13e
History
File Mode Size
bttv
API.html -rw-r--r-- 371 bytes
CARDLIST.bttv -rw-r--r-- 5.0 KB
CARDLIST.cx88 -rw-r--r-- 1.0 KB
CARDLIST.saa7134 -rw-r--r-- 3.5 KB
CARDLIST.tuner -rw-r--r-- 2.4 KB
CQcam.txt -rw-r--r-- 14.1 KB
README.cpia -rw-r--r-- 7.1 KB
README.cx88 -rw-r--r-- 2.2 KB
README.ir -rw-r--r-- 2.3 KB
README.saa7134 -rw-r--r-- 1.9 KB
Zoran -rw-r--r-- 21.9 KB
hauppauge-wintv-cx88-ir.txt -rw-r--r-- 1.9 KB
lifeview.txt -rw-r--r-- 1.9 KB
meye.txt -rw-r--r-- 4.5 KB
not-in-cx2388x-datasheet.txt -rw-r--r-- 953 bytes
radiotrack.txt -rw-r--r-- 5.8 KB
w9966.txt -rw-r--r-- 1.2 KB
zr36120.txt -rw-r--r-- 6.9 KB

README.cpia

back to top