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
pass lu_context to ->o_connect() method
[fs/lustre-release.git]
/
lustre
/
obdclass
/
lu_object.c
diff --git
a/lustre/obdclass/lu_object.c
b/lustre/obdclass/lu_object.c
index
f31b886
..
670c17a
100644
(file)
--- a/
lustre/obdclass/lu_object.c
+++ b/
lustre/obdclass/lu_object.c
@@
-574,6
+574,10
@@
int lu_context_key_register(struct lu_context_key *key)
int result;
int i;
+ LASSERT(key->lct_init != NULL);
+ LASSERT(key->lct_fini != NULL);
+ LASSERT(key->lct_tags != 0);
+
result = -ENFILE;
spin_lock(&lu_keys_guard);
for (i = 0; i < ARRAY_SIZE(lu_keys); ++i) {