Lines Matching refs:buffer_head

47 struct buffer_head;
49 typedef void (bh_end_io_t)(struct buffer_head *bh, int uptodate);
60 struct buffer_head { struct
62 struct buffer_head *b_this_page;/* circular list of page's buffers */ argument
88 static __always_inline void set_buffer_##name(struct buffer_head *bh) \ argument
93 static __always_inline void clear_buffer_##name(struct buffer_head *bh) \
97 static __always_inline int buffer_##name(const struct buffer_head *bh) \
106 static __always_inline int test_set_buffer_##name(struct buffer_head *bh) \
110 static __always_inline int test_clear_buffer_##name(struct buffer_head *bh) \
144 ((struct buffer_head *)page_private(page)); \
155 void mark_buffer_dirty(struct buffer_head *bh);
156 void mark_buffer_write_io_error(struct buffer_head *bh);
157 void touch_buffer(struct buffer_head *bh);
158 void set_bh_page(struct buffer_head *bh,
161 struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size,
165 void end_buffer_read_sync(struct buffer_head *bh, int uptodate);
166 void end_buffer_write_sync(struct buffer_head *bh, int uptodate);
167 void end_buffer_async_write(struct buffer_head *bh, int uptodate);
170 void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode);
177 static inline void clean_bdev_bh_alias(struct buffer_head *bh) in clean_bdev_bh_alias()
182 void mark_buffer_async_write(struct buffer_head *bh);
183 void __wait_on_buffer(struct buffer_head *);
184 wait_queue_head_t *bh_waitq_head(struct buffer_head *bh);
185 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block,
187 struct buffer_head *__getblk_gfp(struct block_device *bdev, sector_t block,
189 void __brelse(struct buffer_head *);
190 void __bforget(struct buffer_head *);
194 struct buffer_head *__bread_gfp(struct block_device *,
199 struct buffer_head *alloc_buffer_head(gfp_t gfp_flags);
200 void free_buffer_head(struct buffer_head * bh);
201 void unlock_buffer(struct buffer_head *bh);
202 void __lock_buffer(struct buffer_head *bh);
203 void ll_rw_block(int, int, int, struct buffer_head * bh[]);
204 int sync_dirty_buffer(struct buffer_head *bh);
205 int __sync_dirty_buffer(struct buffer_head *bh, int op_flags);
206 void write_dirty_buffer(struct buffer_head *bh, int op_flags);
207 int submit_bh(int, int, struct buffer_head *);
210 int bh_uptodate_or_lock(struct buffer_head *bh);
211 int bh_submit_read(struct buffer_head *bh);
277 static inline void get_bh(struct buffer_head *bh) in get_bh()
282 static inline void put_bh(struct buffer_head *bh) in put_bh()
288 static inline void brelse(struct buffer_head *bh) in brelse()
294 static inline void bforget(struct buffer_head *bh) in bforget()
300 static inline struct buffer_head *
306 static inline struct buffer_head *
324 static inline struct buffer_head *
331 static inline struct buffer_head *
337 static inline struct buffer_head *
344 map_bh(struct buffer_head *bh, struct super_block *sb, sector_t block) in map_bh()
352 static inline void wait_on_buffer(struct buffer_head *bh) in wait_on_buffer()
359 static inline int trylock_buffer(struct buffer_head *bh) in trylock_buffer()
364 static inline void lock_buffer(struct buffer_head *bh) in lock_buffer()
371 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, in getblk_unmovable()
378 static inline struct buffer_head *__getblk(struct block_device *bdev, in __getblk()
395 static inline struct buffer_head *