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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 19.3 KB |
Makefile | -rw-r--r-- | 1.6 KB |
act_api.c | -rw-r--r-- | 19.3 KB |
cls_api.c | -rw-r--r-- | 14.6 KB |
cls_basic.c | -rw-r--r-- | 6.4 KB |
cls_fw.c | -rw-r--r-- | 8.3 KB |
cls_route.c | -rw-r--r-- | 12.8 KB |
cls_rsvp.c | -rw-r--r-- | 1.1 KB |
cls_rsvp.h | -rw-r--r-- | 14.7 KB |
cls_rsvp6.c | -rw-r--r-- | 1.1 KB |
cls_tcindex.c | -rw-r--r-- | 12.4 KB |
cls_u32.c | -rw-r--r-- | 17.0 KB |
em_cmp.c | -rw-r--r-- | 2.1 KB |
em_meta.c | -rw-r--r-- | 20.9 KB |
em_nbyte.c | -rw-r--r-- | 1.9 KB |
em_text.c | -rw-r--r-- | 3.6 KB |
em_u32.c | -rw-r--r-- | 1.4 KB |
ematch.c | -rw-r--r-- | 14.2 KB |
estimator.c | -rw-r--r-- | 5.1 KB |
gact.c | -rw-r--r-- | 5.2 KB |
ipt.c | -rw-r--r-- | 7.6 KB |
mirred.c | -rw-r--r-- | 6.4 KB |
pedit.c | -rw-r--r-- | 6.3 KB |
police.c | -rw-r--r-- | 13.4 KB |
sch_api.c | -rw-r--r-- | 29.7 KB |
sch_atm.c | -rw-r--r-- | 20.0 KB |
sch_blackhole.c | -rw-r--r-- | 1.2 KB |
sch_cbq.c | -rw-r--r-- | 48.3 KB |
sch_dsmark.c | -rw-r--r-- | 11.1 KB |
sch_fifo.c | -rw-r--r-- | 2.5 KB |
sch_generic.c | -rw-r--r-- | 15.0 KB |
sch_gred.c | -rw-r--r-- | 14.6 KB |
sch_hfsc.c | -rw-r--r-- | 42.3 KB |
sch_htb.c | -rw-r--r-- | 51.2 KB |
sch_ingress.c | -rw-r--r-- | 9.6 KB |
sch_netem.c | -rw-r--r-- | 14.2 KB |
sch_prio.c | -rw-r--r-- | 8.9 KB |
sch_red.c | -rw-r--r-- | 11.0 KB |
sch_sfq.c | -rw-r--r-- | 11.2 KB |
sch_tbf.c | -rw-r--r-- | 12.0 KB |
sch_teql.c | -rw-r--r-- | 11.7 KB |
simple.c | -rw-r--r-- | 2.3 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...