Lines Matching refs:bh
258 void buffer_assertion_failure(struct buffer_head *bh);
259 #define J_ASSERT_BH(bh, expr) \
262 buffer_assertion_failure(bh); \
267 #define J_ASSERT_BH(bh, expr) J_ASSERT(expr)
285 static inline int buffer_jbd(struct buffer_head *bh)
287 return __buffer_state(bh, JBD);
295 static inline struct journal_head *bh2jh(struct buffer_head *bh)
297 return bh->b_private;
612 extern void __journal_free_buffer(struct journal_head *bh);
732 *journal_add_journal_head(struct buffer_head *bh);
733 extern void journal_remove_journal_head(struct buffer_head *bh);
734 extern void __journal_remove_journal_head(struct buffer_head *bh);
902 static inline int buffer_jlist_eq(struct buffer_head *bh, int list)
904 return SPLICE_LOCK(buffer_jbd(bh), bh2jh(bh)->b_jlist == list);
908 static inline int buffer_jdirty(struct buffer_head *bh)
910 return buffer_jbd(bh) && __buffer_state(bh, JBDDirty);
914 static inline int buffer_jbd_data(struct buffer_head *bh)
916 return SPLICE_LOCK(buffer_jbd(bh),
917 bh2jh(bh)->b_jlist == BJ_SyncData ||
918 bh2jh(bh)->b_jlist == BJ_AsyncData);
927 #define buffer_trace_init(bh) do {} while (0)
928 #define print_buffer_fields(bh) do {} while (0)
929 #define print_buffer_trace(bh) do {} while (0)
930 #define BUFFER_TRACE(bh, info) do {} while (0)
931 #define BUFFER_TRACE2(bh, bh2, info) do {} while (0)
946 #define J_ASSERT_BH(bh, expr) do {} while (0)
947 #define buffer_jbd(bh) 0
948 #define buffer_jlist_eq(bh, val) 0
949 #define journal_buffer_journal_lru(bh) 0