projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: rds: Simplify the allocation of slab caches in rds_conn_init
[linux-2.6-microblaze.git]
/
net
/
rds
/
connection.c
diff --git
a/net/rds/connection.c
b/net/rds/connection.c
index
b4cc699
..
c749c55
100644
(file)
--- a/
net/rds/connection.c
+++ b/
net/rds/connection.c
@@
-829,9
+829,7
@@
int rds_conn_init(void)
if (ret)
return ret;
- rds_conn_slab = kmem_cache_create("rds_connection",
- sizeof(struct rds_connection),
- 0, 0, NULL);
+ rds_conn_slab = KMEM_CACHE(rds_connection, 0);
if (!rds_conn_slab) {
rds_loop_net_exit();
return -ENOMEM;