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

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Oct 15 15:51:12 CDT 2004


Author: manish
Date: 2004-10-15 15:51:10 -0500 (Fri, 15 Oct 2004)
New Revision: 1580

Modified:
   trunk/src/suballoc.c
Log:
cast bitops on bg_bitmap to unsigned long *


Modified: trunk/src/suballoc.c
===================================================================
--- trunk/src/suballoc.c	2004-10-15 00:33:11 UTC (rev 1579)
+++ trunk/src/suballoc.c	2004-10-15 20:51:10 UTC (rev 1580)
@@ -125,7 +125,7 @@
 	bg->bg_parent_dinode = OCFS_I(alloc_inode)->ip_blkno;
 	bg->bg_blkno = group_blkno;
 	/* set the 1st bit in the bitmap to account for the descriptor block */
-	set_bit(0, bg->bg_bitmap);
+	set_bit(0, (unsigned long *) bg->bg_bitmap);
 	bg->bg_free_bits_count = bg->bg_bits - 1;
 
 	status = ocfs_journal_dirty(handle, bg_bh);
@@ -1015,7 +1015,9 @@
 
 	tmp = count;
 	while(tmp--)
-		clear_bit((start_bit + tmp), group->bg_bitmap);
+		clear_bit((start_bit + tmp),
+			  (unsigned long *) group->bg_bitmap);
+
 	group->bg_free_bits_count += count;
 
 	status = ocfs_journal_dirty(handle, group_bh);



More information about the Ocfs2-commits mailing list