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
b=21846 add a hs_key entry in lqs hash operations
[fs/lustre-release.git]
/
libcfs
/
include
/
libcfs
/
libcfs_hash.h
diff --git
a/libcfs/include/libcfs/libcfs_hash.h
b/libcfs/include/libcfs/libcfs_hash.h
index
e195c24
..
73cfe01
100644
(file)
--- a/
libcfs/include/libcfs/libcfs_hash.h
+++ b/
libcfs/include/libcfs/libcfs_hash.h
@@
-175,11
+175,9
@@
cfs_hash_key(cfs_hash_t *hs, cfs_hlist_node_t *hnode)
LASSERT(hs);
LASSERT(hnode);
LASSERT(CFS_HO(hs));
+ LASSERT(CFS_HOP(hs, key));
- if (CFS_HOP(hs, key))
- return CFS_HOP(hs, key)(hnode);
-
- return NULL;
+ return CFS_HOP(hs, key)(hnode);
}
/* Returns 1 on a match,