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
Kconfig -rw-r--r-- 9.3 KB
Makefile -rw-r--r-- 1.1 KB
aes.c -rw-r--r-- 11.3 KB
anubis.c -rw-r--r-- 27.9 KB
api.c -rw-r--r-- 5.4 KB
arc4.c -rw-r--r-- 2.0 KB
blowfish.c -rw-r--r-- 17.3 KB
cast5.c -rw-r--r-- 34.6 KB
cast6.c -rw-r--r-- 22.8 KB
cipher.c -rw-r--r-- 11.1 KB
compress.c -rw-r--r-- 1.8 KB
crc32c.c -rw-r--r-- 2.4 KB
crypto_null.c -rw-r--r-- 3.3 KB
deflate.c -rw-r--r-- 5.4 KB
des.c -rw-r--r-- 35.1 KB
digest.c -rw-r--r-- 2.5 KB
hmac.c -rw-r--r-- 3.3 KB
internal.h -rw-r--r-- 2.6 KB
khazad.c -rw-r--r-- 52.4 KB
md4.c -rw-r--r-- 6.1 KB
md5.c -rw-r--r-- 7.1 KB
michael_mic.c -rw-r--r-- 3.4 KB
proc.c -rw-r--r-- 2.7 KB
scatterwalk.c -rw-r--r-- 2.8 KB
scatterwalk.h -rw-r--r-- 2.0 KB
serpent.c -rw-r--r-- 19.8 KB
sha1.c -rw-r--r-- 3.2 KB
sha256.c -rw-r--r-- 11.1 KB
sha512.c -rw-r--r-- 10.8 KB
tcrypt.c -rw-r--r-- 30.2 KB
tcrypt.h -rw-r--r-- 100.3 KB
tea.c -rw-r--r-- 6.5 KB
tgr192.c -rw-r--r-- 31.9 KB
twofish.c -rw-r--r-- 44.9 KB
wp512.c -rw-r--r-- 60.7 KB

back to top