Home
last modified time | relevance | path

Searched refs:bh (Results 1 – 5 of 5) sorted by relevance

/include/linux/
Djbd_common.h33 static inline struct journal_head *bh2jh(struct buffer_head *bh) in bh2jh() argument
35 return bh->b_private; in bh2jh()
38 static inline void jbd_lock_bh_state(struct buffer_head *bh) in jbd_lock_bh_state() argument
40 bit_spin_lock(BH_State, &bh->b_state); in jbd_lock_bh_state()
43 static inline int jbd_trylock_bh_state(struct buffer_head *bh) in jbd_trylock_bh_state() argument
45 return bit_spin_trylock(BH_State, &bh->b_state); in jbd_trylock_bh_state()
48 static inline int jbd_is_locked_bh_state(struct buffer_head *bh) in jbd_is_locked_bh_state() argument
50 return bit_spin_is_locked(BH_State, &bh->b_state); in jbd_is_locked_bh_state()
53 static inline void jbd_unlock_bh_state(struct buffer_head *bh) in jbd_unlock_bh_state() argument
55 bit_spin_unlock(BH_State, &bh->b_state); in jbd_unlock_bh_state()
[all …]
Dbuffer_head.h48 typedef void (bh_end_io_t)(struct buffer_head *bh, int uptodate);
82 static inline void set_buffer_##name(struct buffer_head *bh) \
84 set_bit(BH_##bit, &(bh)->b_state); \
86 static inline void clear_buffer_##name(struct buffer_head *bh) \
88 clear_bit(BH_##bit, &(bh)->b_state); \
90 static inline int buffer_##name(const struct buffer_head *bh) \
92 return test_bit(BH_##bit, &(bh)->b_state); \
99 static inline int test_set_buffer_##name(struct buffer_head *bh) \
101 return test_and_set_bit(BH_##bit, &(bh)->b_state); \
103 static inline int test_clear_buffer_##name(struct buffer_head *bh) \
[all …]
Djbd.h251 #define J_ASSERT_BH(bh, expr) J_ASSERT(expr) argument
256 #define J_EXPECT_BH(bh, expr, why...) J_ASSERT_BH(bh, expr) argument
270 #define J_EXPECT_BH(bh, expr, why...) __journal_expect(expr, ## why) argument
780 extern void __journal_free_buffer(struct journal_head *bh);
875 struct journal_head *journal_add_journal_head(struct buffer_head *bh);
876 struct journal_head *journal_grab_journal_head(struct buffer_head *bh);
1022 #define buffer_trace_init(bh) do {} while (0) argument
1023 #define print_buffer_fields(bh) do {} while (0) argument
1024 #define print_buffer_trace(bh) do {} while (0) argument
1025 #define BUFFER_TRACE(bh, info) do {} while (0) argument
[all …]
Djbd2.h282 #define J_ASSERT_BH(bh, expr) J_ASSERT(expr) argument
287 #define J_EXPECT_BH(bh, expr, why...) J_ASSERT_BH(bh, expr) argument
302 #define J_EXPECT_BH(bh, expr, why...) __journal_expect(expr, ## why) argument
968 extern void __journal_free_buffer(struct journal_head *bh);
1001 struct buffer_head *bh, void *mapped_data,
1009 struct buffer_head *bh);
1114 struct journal_head *jbd2_journal_add_journal_head(struct buffer_head *bh);
1115 struct journal_head *jbd2_journal_grab_journal_head(struct buffer_head *bh);
1275 #define buffer_trace_init(bh) do {} while (0) argument
1276 #define print_buffer_fields(bh) do {} while (0) argument
[all …]
/include/linux/usb/
Dusbnet.h59 struct tasklet_struct bh; member