summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2002-07-29 01:27:11 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-29 01:27:11 -0700
commitde16834e42295433958e8af61730c872efcdf9de (patch)
tree46c88fdb7f558b0688d3e06910ebcd3608230937 /kernel
parente054680bfe481abfa42190232382219cce6597dc (diff)
[PATCH] update overcommit doc and comment
Update Doc and remove FIXME comment from fork.c now accounting right.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 33ffc850f830..dee7097ba082 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -210,17 +210,12 @@ static inline int dup_mmap(struct mm_struct * mm)
retval = -ENOMEM;
if(mpnt->vm_flags & VM_DONTCOPY)
continue;
-
- /*
- * FIXME: shared writable map accounting should be one off
- */
if (mpnt->vm_flags & VM_ACCOUNT) {
unsigned int len = (mpnt->vm_end - mpnt->vm_start) >> PAGE_SHIFT;
if (!vm_enough_memory(len))
goto fail_nomem;
charge += len;
}
-
tmp = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL);
if (!tmp)
goto fail_nomem;