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
LU-4423 libcfs: remove IS_PO2 and __is_po2
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
hash.c
diff --git
a/libcfs/libcfs/hash.c
b/libcfs/libcfs/hash.c
index
bae84df
..
228cf0b
100644
(file)
--- a/
libcfs/libcfs/hash.c
+++ b/
libcfs/libcfs/hash.c
@@
-103,6
+103,7
@@
* table. Also, user can break the iteration by return 1 in callback.
*/
#include <linux/seq_file.h>
* table. Also, user can break the iteration by return 1 in callback.
*/
#include <linux/seq_file.h>
+#include <linux/log2.h>
#include <libcfs/linux/linux-list.h>
#include <libcfs/libcfs.h>
#include <libcfs/linux/linux-list.h>
#include <libcfs/libcfs.h>
@@
-1808,7
+1809,7
@@
cfs_hash_rehash_cancel_locked(struct cfs_hash *hs)
for (i = 2; cfs_hash_is_rehashing(hs); i++) {
cfs_hash_unlock(hs, 1);
/* raise console warning while waiting too long */
for (i = 2; cfs_hash_is_rehashing(hs); i++) {
cfs_hash_unlock(hs, 1);
/* raise console warning while waiting too long */
- CDEBUG(
IS_PO
2(i >> 3) ? D_WARNING : D_INFO,
+ CDEBUG(
is_power_of_
2(i >> 3) ? D_WARNING : D_INFO,
"hash %s is still rehashing, rescheded %d\n",
hs->hs_name, i - 1);
cond_resched();
"hash %s is still rehashing, rescheded %d\n",
hs->hs_name, i - 1);
cond_resched();