Lines Matching refs:bh

348 static inline struct journal_head *bh2jh(struct buffer_head *bh)  in bh2jh()  argument
350 return bh->b_private; in bh2jh()
353 static inline void jbd_lock_bh_state(struct buffer_head *bh) in jbd_lock_bh_state() argument
355 bit_spin_lock(BH_State, &bh->b_state); in jbd_lock_bh_state()
358 static inline int jbd_trylock_bh_state(struct buffer_head *bh) in jbd_trylock_bh_state() argument
360 return bit_spin_trylock(BH_State, &bh->b_state); in jbd_trylock_bh_state()
363 static inline int jbd_is_locked_bh_state(struct buffer_head *bh) in jbd_is_locked_bh_state() argument
365 return bit_spin_is_locked(BH_State, &bh->b_state); in jbd_is_locked_bh_state()
368 static inline void jbd_unlock_bh_state(struct buffer_head *bh) in jbd_unlock_bh_state() argument
370 bit_spin_unlock(BH_State, &bh->b_state); in jbd_unlock_bh_state()
373 static inline void jbd_lock_bh_journal_head(struct buffer_head *bh) in jbd_lock_bh_journal_head() argument
375 bit_spin_lock(BH_JournalHead, &bh->b_state); in jbd_lock_bh_journal_head()
378 static inline void jbd_unlock_bh_journal_head(struct buffer_head *bh) in jbd_unlock_bh_journal_head() argument
380 bit_spin_unlock(BH_JournalHead, &bh->b_state); in jbd_unlock_bh_journal_head()
385 #define J_ASSERT_BH(bh, expr) J_ASSERT(expr) argument
390 #define J_EXPECT_BH(bh, expr, why...) J_ASSERT_BH(bh, expr) argument
405 #define J_EXPECT_BH(bh, expr, why...) __journal_expect(expr, ## why) argument
1127 extern void __journal_free_buffer(struct journal_head *bh);
1130 static inline void jbd2_file_log_bh(struct list_head *head, struct buffer_head *bh) in jbd2_file_log_bh() argument
1132 list_add_tail(&bh->b_assoc_buffers, head); in jbd2_file_log_bh()
1134 static inline void jbd2_unfile_log_bh(struct buffer_head *bh) in jbd2_unfile_log_bh() argument
1136 list_del_init(&bh->b_assoc_buffers); in jbd2_unfile_log_bh()
1169 struct buffer_head *bh, void *mapped_data,
1177 struct buffer_head *bh);
1286 struct journal_head *jbd2_journal_add_journal_head(struct buffer_head *bh);
1287 struct journal_head *jbd2_journal_grab_journal_head(struct buffer_head *bh);
1509 #define buffer_trace_init(bh) do {} while (0) argument
1510 #define print_buffer_fields(bh) do {} while (0) argument
1511 #define print_buffer_trace(bh) do {} while (0) argument
1512 #define BUFFER_TRACE(bh, info) do {} while (0) argument
1513 #define BUFFER_TRACE2(bh, bh2, info) do {} while (0) argument