OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Consolidate creation of kmem caches with "calculated" names
Re: [PATCH] Consolidate creation of kmem caches with "calculated" names [message #21941 is a reply to message #21882] Thu, 18 October 2007 04:27 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Pavel Emelyanov <xemul@openvz.org>
Date: Wed, 17 Oct 2007 17:09:30 +0400

> Some places in network (like protocol registration and dccp)
> generate the kmem cache name with snprintf() to create caches
> for several protocols with similar names.
> 
> Make the routine that makes this in one place. Possibly, this
> is better to be put in mm/sl[uoa]b.c, but I haven't found
> any other places in kernel that require such functionality,
> so put this code (temporary?) in net/core/util.c
> 
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

I don't think we should be putting kmem_*() interfaces in
a place like net/core/utils.c, please submit that seperately
to the SLAB and/or SLUB maintainers, and once that it in
we can add the uses to the networking.

Tanks.
 
Read Message
Read Message
Previous Topic: [PATCH] Cleanup snmp6_alloc_dev()
Next Topic: [PATCH] [NETNS49] Add struct net to flush_cache in fib_rules_ops
Goto Forum:
  


Current Time: Wed Sep 10 09:05:16 GMT 2025

Total time taken to generate the page: 0.08288 seconds