[Ocfs2-commits] manish commits r935 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon May 24 22:14:36 CDT 2004


Author: manish
Date: 2004-05-24 21:14:34 -0500 (Mon, 24 May 2004)
New Revision: 935

Modified:
   trunk/src/bitmap.c
Log:
unsigned long * casts for bitops functions


Modified: trunk/src/bitmap.c
===================================================================
--- trunk/src/bitmap.c	2004-05-25 01:40:52 UTC (rev 934)
+++ trunk/src/bitmap.c	2004-05-25 02:14:34 UTC (rev 935)
@@ -143,11 +143,11 @@
  */
 static int ocfs_test_allocatable(int nr, struct buffer_head *bh)
 {
-	if (test_bit(nr, bh->b_data))
+	if (test_bit(nr, (unsigned long *)bh->b_data))
 		return 0;
 	if (!buffer_jbd(bh) || !bh2jh(bh)->b_committed_data)
 		return 1;
-	return !test_bit(nr, bh2jh(bh)->b_committed_data);
+	return !test_bit(nr, (unsigned long *)bh2jh(bh)->b_committed_data);
 }
 
 /*
@@ -408,7 +408,8 @@
 	while (num--) {
 		clear_bit (local, buff);
 		if (handle)
-			set_bit(local, bh2jh(currbh)->b_committed_data);
+			set_bit(local,
+				(unsigned long *)bh2jh(currbh)->b_committed_data);
 		local++;
 
 		if (local >= OCFS_BITS_IN_CHUNK && num != 0) {



More information about the Ocfs2-commits mailing list