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
9p
adfs
affs
afs
autofs
autofs4
befs
bfs
cifs
coda
cramfs
debugfs
devfs
devpts
efs
exportfs
ext2
ext3
fat
freevxfs
fuse
hfs
hfsplus
hostfs
hpfs
hppfs
hugetlbfs
isofs
jbd
jffs
jffs2
jfs
lockd
minix
msdos
ncpfs
nfs
nfs_common
nfsd
nls
ntfs
openpromfs
partitions
proc
qnx4
ramfs
reiserfs
relayfs
romfs
smbfs
sysfs
sysv
udf
ufs
vfat
xfs
Kconfig -rw-r--r-- 63.2 KB
Kconfig.binfmt -rw-r--r-- 5.3 KB
Makefile -rw-r--r-- 3.2 KB
aio.c -rw-r--r-- 43.7 KB
attr.c -rw-r--r-- 4.4 KB
bad_inode.c -rw-r--r-- 2.8 KB
binfmt_aout.c -rw-r--r-- 14.9 KB
binfmt_elf.c -rw-r--r-- 45.3 KB
binfmt_elf_fdpic.c -rw-r--r-- 30.3 KB
binfmt_em86.c -rw-r--r-- 2.8 KB
binfmt_flat.c -rw-r--r-- 25.8 KB
binfmt_misc.c -rw-r--r-- 15.6 KB
binfmt_script.c -rw-r--r-- 2.7 KB
binfmt_som.c -rw-r--r-- 7.7 KB
bio.c -rw-r--r-- 28.6 KB
block_dev.c -rw-r--r-- 21.7 KB
buffer.c -rw-r--r-- 81.9 KB
char_dev.c -rw-r--r-- 9.5 KB
compat.c -rw-r--r-- 45.5 KB
compat_ioctl.c -rw-r--r-- 85.0 KB
dcache.c -rw-r--r-- 43.9 KB
dcookies.c -rw-r--r-- 6.2 KB
direct-io.c -rw-r--r-- 34.5 KB
dnotify.c -rw-r--r-- 4.3 KB
dquot.c -rw-r--r-- 51.7 KB
eventpoll.c -rw-r--r-- 44.1 KB
exec.c -rw-r--r-- 34.5 KB
fcntl.c -rw-r--r-- 13.6 KB
fifo.c -rw-r--r-- 3.2 KB
file.c -rw-r--r-- 8.8 KB
file_table.c -rw-r--r-- 6.2 KB
filesystems.c -rw-r--r-- 5.2 KB
fs-writeback.c -rw-r--r-- 19.4 KB
inode.c -rw-r--r-- 35.8 KB
inotify.c -rw-r--r-- 26.5 KB
ioctl.c -rw-r--r-- 3.9 KB
ioprio.c -rw-r--r-- 3.5 KB
libfs.c -rw-r--r-- 15.2 KB
locks.c -rw-r--r-- 55.0 KB
mbcache.c -rw-r--r-- 18.2 KB
mpage.c -rw-r--r-- 20.6 KB
namei.c -rw-r--r-- 59.9 KB
namespace.c -rw-r--r-- 35.0 KB
nfsctl.c -rw-r--r-- 2.5 KB
open.c -rw-r--r-- 23.6 KB
pipe.c -rw-r--r-- 18.3 KB
posix_acl.c -rw-r--r-- 8.5 KB
quota.c -rw-r--r-- 8.6 KB
quota_v1.c -rw-r--r-- 5.7 KB
quota_v2.c -rw-r--r-- 20.1 KB
read_write.c -rw-r--r-- 15.8 KB
readdir.c -rw-r--r-- 6.7 KB
select.c -rw-r--r-- 12.4 KB
seq_file.c -rw-r--r-- 9.5 KB
stat.c -rw-r--r-- 9.2 KB
super.c -rw-r--r-- 20.1 KB
xattr.c -rw-r--r-- 11.0 KB
xattr_acl.c -rw-r--r-- 2.3 KB

back to top