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-6245 libcfs: remove bitops wrappers for libcfs
[fs/lustre-release.git]
/
lustre
/
utils
/
llog_reader.c
diff --git
a/lustre/utils/llog_reader.c
b/lustre/utils/llog_reader.c
index
e2cd538
..
9794033
100644
(file)
--- a/
lustre/utils/llog_reader.c
+++ b/
lustre/utils/llog_reader.c
@@
-56,7
+56,9
@@
static inline int ext2_test_bit(int nr, const void *addr)
const unsigned char *tmp = addr;
return (tmp[nr >> 3] >> (nr & 7)) & 1;
#else
- return test_bit(nr, addr);
+ const unsigned long *tmp = addr;
+ return ((1UL << (nr & (BITS_PER_LONG - 1))) &
+ ((tmp)[nr / BITS_PER_LONG])) != 0;
#endif
}