]> git.hungrycats.org Git - linux/commitdiff
Fix some strange (and incorrect) reiserfs bit-op casts..
authorLinus Torvalds <torvalds@home.transmeta.com>
Tue, 23 Apr 2002 12:58:45 +0000 (05:58 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 23 Apr 2002 12:58:45 +0000 (05:58 -0700)
No object-code changes, but removes warnings from the stricter
typechecking.

fs/reiserfs/journal.c
include/linux/reiserfs_fs.h

index ae3caae5143592571dbc36e297f72739b838b6b6..8b15506fc6bd2c6ad890ab1fc0f46d18cdfcadf8 100644 (file)
@@ -390,7 +390,7 @@ static int clear_prepared_bits(struct buffer_head *bh) {
 /* buffer is in current transaction */
 inline int buffer_journaled(const struct buffer_head *bh) {
   if (bh)
-    return test_bit(BH_JDirty, ( struct buffer_head * ) &bh->b_state) ;
+    return test_bit(BH_JDirty, &bh->b_state) ;
   else
     return 0 ;
 }
@@ -400,7 +400,7 @@ inline int buffer_journaled(const struct buffer_head *bh) {
 */ 
 inline int buffer_journal_new(const struct buffer_head *bh) {
   if (bh) 
-    return test_bit(BH_JNew, ( struct buffer_head * )&bh->b_state) ;
+    return test_bit(BH_JNew, &bh->b_state) ;
   else
     return 0 ;
 }
index b27d98610bd3163ef0b3470d2f856af23c579f03..3a882fc08d1e062a1f00618884d156c65ad9e670 100644 (file)
@@ -1681,7 +1681,7 @@ int reiserfs_allocate_list_bitmaps(struct super_block *s, struct reiserfs_list_b
 
                                /* why is this kerplunked right here? */
 static inline int reiserfs_buffer_prepared(const struct buffer_head *bh) {
-  if (bh && test_bit(BH_JPrepared, ( struct buffer_head * ) &bh->b_state))
+  if (bh && test_bit(BH_JPrepared, &bh->b_state))
     return 1 ;
   else
     return 0 ;
@@ -1690,7 +1690,7 @@ static inline int reiserfs_buffer_prepared(const struct buffer_head *bh) {
 /* buffer was journaled, waiting to get to disk */
 static inline int buffer_journal_dirty(const struct buffer_head *bh) {
   if (bh)
-    return test_bit(BH_JDirty_wait, ( struct buffer_head * ) &bh->b_state) ;
+    return test_bit(BH_JDirty_wait, &bh->b_state) ;
   else
     return 0 ;
 }