Commit f08d3be8 authored by Linus Torvalds's avatar Linus Torvalds

Fix some strange (and incorrect) reiserfs bit-op casts..

No object-code changes, but removes warnings from the stricter
typechecking.
parent 89eb125e
......@@ -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 ;
}
......
......@@ -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 ;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment