[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 <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
441e143e95
commit
e18b890bb0
@@ -98,7 +98,7 @@ struct dst_ops
|
||||
int entry_size;
|
||||
|
||||
atomic_t entries;
|
||||
kmem_cache_t *kmem_cachep;
|
||||
struct kmem_cache *kmem_cachep;
|
||||
};
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
@@ -125,7 +125,7 @@ struct inet_hashinfo {
|
||||
rwlock_t lhash_lock ____cacheline_aligned;
|
||||
atomic_t lhash_users;
|
||||
wait_queue_head_t lhash_wait;
|
||||
kmem_cache_t *bind_bucket_cachep;
|
||||
struct kmem_cache *bind_bucket_cachep;
|
||||
};
|
||||
|
||||
static inline struct inet_ehash_bucket *inet_ehash_bucket(
|
||||
@@ -136,10 +136,10 @@ static inline struct inet_ehash_bucket *inet_ehash_bucket(
|
||||
}
|
||||
|
||||
extern struct inet_bind_bucket *
|
||||
inet_bind_bucket_create(kmem_cache_t *cachep,
|
||||
inet_bind_bucket_create(struct kmem_cache *cachep,
|
||||
struct inet_bind_hashbucket *head,
|
||||
const unsigned short snum);
|
||||
extern void inet_bind_bucket_destroy(kmem_cache_t *cachep,
|
||||
extern void inet_bind_bucket_destroy(struct kmem_cache *cachep,
|
||||
struct inet_bind_bucket *tb);
|
||||
|
||||
static inline int inet_bhashfn(const __u16 lport, const int bhash_size)
|
||||
|
@@ -160,7 +160,7 @@ struct neigh_table
|
||||
atomic_t entries;
|
||||
rwlock_t lock;
|
||||
unsigned long last_rand;
|
||||
kmem_cache_t *kmem_cachep;
|
||||
struct kmem_cache *kmem_cachep;
|
||||
struct neigh_statistics *stats;
|
||||
struct neighbour **hash_buckets;
|
||||
unsigned int hash_mask;
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#include <net/netfilter/nf_conntrack.h>
|
||||
|
||||
extern struct list_head nf_conntrack_expect_list;
|
||||
extern kmem_cache_t *nf_conntrack_expect_cachep;
|
||||
extern struct kmem_cache *nf_conntrack_expect_cachep;
|
||||
extern struct file_operations exp_file_ops;
|
||||
|
||||
struct nf_conntrack_expect
|
||||
|
@@ -29,7 +29,7 @@ struct proto;
|
||||
struct request_sock_ops {
|
||||
int family;
|
||||
int obj_size;
|
||||
kmem_cache_t *slab;
|
||||
struct kmem_cache *slab;
|
||||
int (*rtx_syn_ack)(struct sock *sk,
|
||||
struct request_sock *req,
|
||||
struct dst_entry *dst);
|
||||
|
@@ -571,7 +571,7 @@ struct proto {
|
||||
int *sysctl_rmem;
|
||||
int max_header;
|
||||
|
||||
kmem_cache_t *slab;
|
||||
struct kmem_cache *slab;
|
||||
unsigned int obj_size;
|
||||
|
||||
atomic_t *orphan_count;
|
||||
|
@@ -15,7 +15,7 @@
|
||||
#include <net/sock.h>
|
||||
|
||||
struct timewait_sock_ops {
|
||||
kmem_cache_t *twsk_slab;
|
||||
struct kmem_cache *twsk_slab;
|
||||
unsigned int twsk_obj_size;
|
||||
int (*twsk_unique)(struct sock *sk,
|
||||
struct sock *sktw, void *twp);
|
||||
|
Reference in New Issue
Block a user