mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] slab: remove kmem_cache_t
Replace all uses of kmem_cache_t with struct kmem_cache. The patch was generated using the following script: #!/bin/sh # # Replace one string by another in all the kernel sources. # set -e for file in `find * -name "*.c" -o -name "*.h"|xargs grep -l $1`; do quilt add $file sed -e "1,\$s/$1/$2/g" $file >/tmp/$$ mv /tmp/$$ $file quilt refresh done The script was run like this sh replace kmem_cache_t "struct kmem_cache" Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
441e143e95
commit
e18b890bb0
189 changed files with 332 additions and 332 deletions
|
|
@ -45,8 +45,8 @@
|
|||
|
||||
#include "fib_lookup.h"
|
||||
|
||||
static kmem_cache_t *fn_hash_kmem __read_mostly;
|
||||
static kmem_cache_t *fn_alias_kmem __read_mostly;
|
||||
static struct kmem_cache *fn_hash_kmem __read_mostly;
|
||||
static struct kmem_cache *fn_alias_kmem __read_mostly;
|
||||
|
||||
struct fib_node {
|
||||
struct hlist_node fn_hash;
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ static struct tnode *inflate(struct trie *t, struct tnode *tn);
|
|||
static struct tnode *halve(struct trie *t, struct tnode *tn);
|
||||
static void tnode_free(struct tnode *tn);
|
||||
|
||||
static kmem_cache_t *fn_alias_kmem __read_mostly;
|
||||
static struct kmem_cache *fn_alias_kmem __read_mostly;
|
||||
static struct trie *trie_local = NULL, *trie_main = NULL;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
* Allocate and initialize a new local port bind bucket.
|
||||
* The bindhash mutex for snum's hash chain must be held here.
|
||||
*/
|
||||
struct inet_bind_bucket *inet_bind_bucket_create(kmem_cache_t *cachep,
|
||||
struct inet_bind_bucket *inet_bind_bucket_create(struct kmem_cache *cachep,
|
||||
struct inet_bind_hashbucket *head,
|
||||
const unsigned short snum)
|
||||
{
|
||||
|
|
@ -45,7 +45,7 @@ struct inet_bind_bucket *inet_bind_bucket_create(kmem_cache_t *cachep,
|
|||
/*
|
||||
* Caller must hold hashbucket lock for this tb with local BH disabled
|
||||
*/
|
||||
void inet_bind_bucket_destroy(kmem_cache_t *cachep, struct inet_bind_bucket *tb)
|
||||
void inet_bind_bucket_destroy(struct kmem_cache *cachep, struct inet_bind_bucket *tb)
|
||||
{
|
||||
if (hlist_empty(&tb->owners)) {
|
||||
__hlist_del(&tb->node);
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@
|
|||
/* Exported for inet_getid inline function. */
|
||||
DEFINE_SPINLOCK(inet_peer_idlock);
|
||||
|
||||
static kmem_cache_t *peer_cachep __read_mostly;
|
||||
static struct kmem_cache *peer_cachep __read_mostly;
|
||||
|
||||
#define node_height(x) x->avl_height
|
||||
static struct inet_peer peer_fake_node = {
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ static DEFINE_SPINLOCK(mfc_unres_lock);
|
|||
In this case data path is free of exclusive locks at all.
|
||||
*/
|
||||
|
||||
static kmem_cache_t *mrt_cachep __read_mostly;
|
||||
static struct kmem_cache *mrt_cachep __read_mostly;
|
||||
|
||||
static int ip_mr_forward(struct sk_buff *skb, struct mfc_cache *cache, int local);
|
||||
static int ipmr_cache_report(struct sk_buff *pkt, vifi_t vifi, int assert);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
static struct list_head *ip_vs_conn_tab;
|
||||
|
||||
/* SLAB cache for IPVS connections */
|
||||
static kmem_cache_t *ip_vs_conn_cachep __read_mostly;
|
||||
static struct kmem_cache *ip_vs_conn_cachep __read_mostly;
|
||||
|
||||
/* counter for current IPVS connections */
|
||||
static atomic_t ip_vs_conn_count = ATOMIC_INIT(0);
|
||||
|
|
|
|||
|
|
@ -65,8 +65,8 @@ static LIST_HEAD(helpers);
|
|||
unsigned int ip_conntrack_htable_size __read_mostly = 0;
|
||||
int ip_conntrack_max __read_mostly;
|
||||
struct list_head *ip_conntrack_hash __read_mostly;
|
||||
static kmem_cache_t *ip_conntrack_cachep __read_mostly;
|
||||
static kmem_cache_t *ip_conntrack_expect_cachep __read_mostly;
|
||||
static struct kmem_cache *ip_conntrack_cachep __read_mostly;
|
||||
static struct kmem_cache *ip_conntrack_expect_cachep __read_mostly;
|
||||
struct ip_conntrack ip_conntrack_untracked;
|
||||
unsigned int ip_ct_log_invalid __read_mostly;
|
||||
static LIST_HEAD(unconfirmed);
|
||||
|
|
|
|||
Loading…
Reference in a new issue