Lines Matching refs:buffer_head
48 struct buffer_head;
50 typedef void (bh_end_io_t)(struct buffer_head *bh, int uptodate);
61 struct buffer_head { struct
63 struct buffer_head *b_this_page;/* circular list of page's buffers */ argument
92 static __always_inline void set_buffer_##name(struct buffer_head *bh) \ argument
97 static __always_inline void clear_buffer_##name(struct buffer_head *bh) \
101 static __always_inline int buffer_##name(const struct buffer_head *bh) \
110 static __always_inline int test_set_buffer_##name(struct buffer_head *bh) \
114 static __always_inline int test_clear_buffer_##name(struct buffer_head *bh) \
141 static __always_inline void set_buffer_uptodate(struct buffer_head *bh) in BUFFER_FNS()
162 static __always_inline void clear_buffer_uptodate(struct buffer_head *bh) in clear_buffer_uptodate()
167 static __always_inline int buffer_uptodate(const struct buffer_head *bh) in buffer_uptodate()
182 ((struct buffer_head *)page_private(page)); \
194 void mark_buffer_dirty(struct buffer_head *bh);
195 void mark_buffer_write_io_error(struct buffer_head *bh);
196 void touch_buffer(struct buffer_head *bh);
197 void set_bh_page(struct buffer_head *bh,
200 struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size,
204 void end_buffer_read_sync(struct buffer_head *bh, int uptodate);
205 void end_buffer_write_sync(struct buffer_head *bh, int uptodate);
206 void end_buffer_async_write(struct buffer_head *bh, int uptodate);
209 void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode);
216 static inline void clean_bdev_bh_alias(struct buffer_head *bh) in clean_bdev_bh_alias()
221 void mark_buffer_async_write(struct buffer_head *bh);
222 void __wait_on_buffer(struct buffer_head *);
223 wait_queue_head_t *bh_waitq_head(struct buffer_head *bh);
224 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block,
226 struct buffer_head *__getblk_gfp(struct block_device *bdev, sector_t block,
228 void __brelse(struct buffer_head *);
229 void __bforget(struct buffer_head *);
231 struct buffer_head *__bread_gfp(struct block_device *,
236 struct buffer_head *alloc_buffer_head(gfp_t gfp_flags);
237 void free_buffer_head(struct buffer_head * bh);
238 void unlock_buffer(struct buffer_head *bh);
239 void __lock_buffer(struct buffer_head *bh);
240 int sync_dirty_buffer(struct buffer_head *bh);
241 int __sync_dirty_buffer(struct buffer_head *bh, blk_opf_t op_flags);
242 void write_dirty_buffer(struct buffer_head *bh, blk_opf_t op_flags);
243 void submit_bh(blk_opf_t, struct buffer_head *);
246 int bh_uptodate_or_lock(struct buffer_head *bh);
247 int __bh_read(struct buffer_head *bh, blk_opf_t op_flags, bool wait);
248 void __bh_read_batch(int nr, struct buffer_head *bhs[],
315 static inline void get_bh(struct buffer_head *bh) in get_bh()
320 static inline void put_bh(struct buffer_head *bh) in put_bh()
326 static inline void brelse(struct buffer_head *bh) in brelse()
332 static inline void bforget(struct buffer_head *bh) in bforget()
338 static inline struct buffer_head *
344 static inline struct buffer_head *
356 static inline struct buffer_head *
363 static inline struct buffer_head *
369 static inline struct buffer_head *
376 map_bh(struct buffer_head *bh, struct super_block *sb, sector_t block) in map_bh()
384 static inline void wait_on_buffer(struct buffer_head *bh) in wait_on_buffer()
391 static inline int trylock_buffer(struct buffer_head *bh) in trylock_buffer()
396 static inline void lock_buffer(struct buffer_head *bh) in lock_buffer()
403 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, in getblk_unmovable()
410 static inline struct buffer_head *__getblk(struct block_device *bdev, in __getblk()
417 static inline void bh_readahead(struct buffer_head *bh, blk_opf_t op_flags) in bh_readahead()
427 static inline void bh_read_nowait(struct buffer_head *bh, blk_opf_t op_flags) in bh_read_nowait()
434 static inline int bh_read(struct buffer_head *bh, blk_opf_t op_flags) in bh_read()
441 static inline void bh_read_batch(int nr, struct buffer_head *bhs[]) in bh_read_batch()
446 static inline void bh_readahead_batch(int nr, struct buffer_head *bhs[], in bh_readahead_batch()
462 static inline struct buffer_head *