patch-2.4.0-test7 linux/kernel/exit.c

Next file: linux/kernel/fork.c
Previous file: linux/ipc/shm.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/kernel/exit.c linux/kernel/exit.c
@@ -229,7 +229,7 @@
 			dput(fs->altroot);
 			mntput(fs->altrootmnt);
 		}
-		kfree(fs);
+		kmem_cache_free(fs_cachep, fs);
 	}
 }
 
@@ -264,7 +264,7 @@
 		tsk->sig = NULL;
 		spin_unlock_irq(&tsk->sigmask_lock);
 		if (atomic_dec_and_test(&sig->count))
-			kfree(sig);
+			kmem_cache_free(sigact_cachep, sig);
 	}
 
 	flush_signals(tsk);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)