Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix the warnings
[fs/lustre-release.git]
/
lustre
/
lov
/
lov_obd.c
diff --git
a/lustre/lov/lov_obd.c
b/lustre/lov/lov_obd.c
index
a533d91
..
db81ef9
100644
(file)
--- a/
lustre/lov/lov_obd.c
+++ b/
lustre/lov/lov_obd.c
@@
-2628,7
+2628,7
@@
struct obd_ops lov_obd_ops = {
static quota_interface_t *quota_interface;
extern quota_interface_t lov_quota_interface;
static quota_interface_t *quota_interface;
extern quota_interface_t lov_quota_interface;
-
k
mem_cache_t *lov_oinfo_slab;
+
cfs_
mem_cache_t *lov_oinfo_slab;
int __init lov_init(void)
{
int __init lov_init(void)
{
@@
-2636,9
+2636,8
@@
int __init lov_init(void)
int rc, rc2;
ENTRY;
int rc, rc2;
ENTRY;
- lov_oinfo_slab = kmem_cache_create("lov_oinfo",
- sizeof(struct lov_oinfo), 0,
- SLAB_HWCACHE_ALIGN, NULL, NULL);
+ lov_oinfo_slab = cfs_mem_cache_create("lov_oinfo",
+ sizeof(struct lov_oinfo), 0, 0);
if (lov_oinfo_slab == NULL)
return -ENOMEM;
lprocfs_init_vars(lov, &lvars);
if (lov_oinfo_slab == NULL)
return -ENOMEM;
lprocfs_init_vars(lov, &lvars);
@@
-2652,7
+2651,7
@@
int __init lov_init(void)
if (rc) {
if (quota_interface)
PORTAL_SYMBOL_PUT(lov_quota_interface);
if (rc) {
if (quota_interface)
PORTAL_SYMBOL_PUT(lov_quota_interface);
- rc2 =
k
mem_cache_destroy(lov_oinfo_slab);
+ rc2 =
cfs_
mem_cache_destroy(lov_oinfo_slab);
LASSERT(rc2 == 0);
}
LASSERT(rc2 == 0);
}
@@
-2668,7
+2667,7
@@
static void /*__exit*/ lov_exit(void)
PORTAL_SYMBOL_PUT(lov_quota_interface);
class_unregister_type(LUSTRE_LOV_NAME);
PORTAL_SYMBOL_PUT(lov_quota_interface);
class_unregister_type(LUSTRE_LOV_NAME);
- rc =
k
mem_cache_destroy(lov_oinfo_slab);
+ rc =
cfs_
mem_cache_destroy(lov_oinfo_slab);
LASSERT(rc == 0);
}
LASSERT(rc == 0);
}