No object-code changes, but removes warnings from the stricter
typechecking.
/* 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 ;
}
*/
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 ;
}
/* 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 ;
/* 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 ;
}