1 #ifndef _LINUX_JBD_STATE_H
2 #define _LINUX_JBD_STATE_H
35 static inline struct journal_head *bh2jh(
struct buffer_head *bh)
40 static inline void jbd_lock_bh_state(
struct buffer_head *bh)
42 bit_spin_lock(
BH_State, &bh->b_state);
45 static inline int jbd_trylock_bh_state(
struct buffer_head *bh)
47 return bit_spin_trylock(
BH_State, &bh->b_state);
50 static inline int jbd_is_locked_bh_state(
struct buffer_head *bh)
52 return bit_spin_is_locked(
BH_State, &bh->b_state);
55 static inline void jbd_unlock_bh_state(
struct buffer_head *bh)
57 bit_spin_unlock(
BH_State, &bh->b_state);
60 static inline void jbd_lock_bh_journal_head(
struct buffer_head *bh)
65 static inline void jbd_unlock_bh_journal_head(
struct buffer_head *bh)