[Ocfs-tools-commits] manish commits r68 - trunk/ocfs/fsck
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Wed Jun 16 20:01:12 CDT 2004
Author: manish
Date: 2004-06-16 19:01:09 -0500 (Wed, 16 Jun 2004)
New Revision: 68
Modified:
trunk/ocfs/fsck/utils.c
Log:
cast to unsigned long * for test_bit calls
Modified: trunk/ocfs/fsck/utils.c
===================================================================
--- trunk/ocfs/fsck/utils.c 2004-06-16 18:50:03 UTC (rev 67)
+++ trunk/ocfs/fsck/utils.c 2004-06-17 00:01:09 UTC (rev 68)
@@ -549,9 +549,9 @@
/* clearing all the allocated bits in the global bitmap */
for (i = 0; i < ctxt.vol_bm_data->len; ++i) {
bm1 = &(g_array_index(ctxt.vol_bm_data, bitmap_data, i));
- j = __test_and_clear_bit(bm1->bitnum, vol_bm);
+ j = __test_and_clear_bit(bm1->bitnum, (unsigned long *)vol_bm);
if (!j) {
- if (!test_bit(bm1->bitnum, ctxt.vol_bm))
+ if (!test_bit(bm1->bitnum, (unsigned long *)ctxt.vol_bm))
g_array_append_val(bits, bm1->bitnum);
}
}
@@ -641,9 +641,9 @@
str, bm1->alloc_node, HILO(bm1->fss_off));
continue;
}
- j = __test_and_clear_bit(bm1->bitnum, temp_bm[bm1->alloc_node]);
+ j = __test_and_clear_bit(bm1->bitnum, (unsigned long *)temp_bm[bm1->alloc_node]);
if (!j) {
- if (!test_bit(bm1->bitnum, node_bm[bm1->alloc_node]))
+ if (!test_bit(bm1->bitnum, (unsigned long *)node_bm[bm1->alloc_node]))
LOG_ERROR("Bit %u is unset in the %s bitmap "
"of node %d", bm1->bitnum, str,
bm1->alloc_node);
More information about the Ocfs-tools-commits
mailing list