patch-2.3.16 linux/mm/slab.c

Next file: linux/mm/swap_state.c
Previous file: linux/mm/page_io.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/mm/slab.c linux/mm/slab.c
@@ -993,8 +993,7 @@
 	/* Find the cache in the chain of caches. */
 	down(&cache_chain_sem);
 	for (searchp = &cache_cache; searchp->c_nextp != &cache_cache;
-	     searchp = searchp->c_nextp)
-	{
+	     searchp = searchp->c_nextp) {
 		if (searchp->c_nextp != cachep)
 			continue;
 
@@ -1054,8 +1053,7 @@
 		return 2;
 	}
 
-	if (!is_chained_kmem_cache(cachep))
-	{
+	if (!is_chained_kmem_cache(cachep)) {
 		printk(KERN_ERR "kmem_shrink: Invalid cache addr %p\n",
 		       cachep);
 		return 2;
@@ -1087,8 +1085,7 @@
 	/* Find the cache in the chain of caches. */
 	down(&cache_chain_sem);
 	for (prev = &cache_cache; prev->c_nextp != &cache_cache;
-	     prev = prev->c_nextp)
-	{
+	     prev = prev->c_nextp) {
 		if (prev->c_nextp != cachep)
 			continue;
 
@@ -1104,15 +1101,13 @@
 	}
 	up(&cache_chain_sem);
 
-	if (!ret)
-	{
+	if (!ret) {
 		printk(KERN_ERR "kmem_destroy: Invalid cache addr %p\n",
 		       cachep);
 		return 1;
 	}
 
-	if (__kmem_cache_shrink(cachep))
-	{
+	if (__kmem_cache_shrink(cachep)) {
 		printk(KERN_ERR "kmem_destroy: Can't free all objects %p\n",
 		       cachep);
 		down(&cache_chain_sem);

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