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) \
137 static __always_inline void set_buffer_uptodate(struct buffer_head *bh) in BUFFER_FNS()
158 static __always_inline void clear_buffer_uptodate(struct buffer_head *bh) in clear_buffer_uptodate()
163 static __always_inline int buffer_uptodate(const struct buffer_head *bh) in buffer_uptodate()
178 ((struct buffer_head *)page_private(page)); \
189 void mark_buffer_dirty(struct buffer_head *bh);
190 void mark_buffer_write_io_error(struct buffer_head *bh);
191 void touch_buffer(struct buffer_head *bh);
192 void set_bh_page(struct buffer_head *bh,
195 struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size,
199 void end_buffer_read_sync(struct buffer_head *bh, int uptodate);
200 void end_buffer_write_sync(struct buffer_head *bh, int uptodate);
201 void end_buffer_async_write(struct buffer_head *bh, int uptodate);
204 void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode);
211 static inline void clean_bdev_bh_alias(struct buffer_head *bh) in clean_bdev_bh_alias()
216 void mark_buffer_async_write(struct buffer_head *bh);
217 void __wait_on_buffer(struct buffer_head *);
218 wait_queue_head_t *bh_waitq_head(struct buffer_head *bh);
219 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block,
221 struct buffer_head *__getblk_gfp(struct block_device *bdev, sector_t block,
223 void __brelse(struct buffer_head *);
224 void __bforget(struct buffer_head *);
228 struct buffer_head *__bread_gfp(struct block_device *,
233 struct buffer_head *alloc_buffer_head(gfp_t gfp_flags);
234 void free_buffer_head(struct buffer_head * bh);
235 void unlock_buffer(struct buffer_head *bh);
236 void __lock_buffer(struct buffer_head *bh);
237 void ll_rw_block(int, int, int, struct buffer_head * bh[]);
238 int sync_dirty_buffer(struct buffer_head *bh);
239 int __sync_dirty_buffer(struct buffer_head *bh, int op_flags);
240 void write_dirty_buffer(struct buffer_head *bh, int op_flags);
241 int submit_bh(int, int, struct buffer_head *);
244 int bh_uptodate_or_lock(struct buffer_head *bh);
245 int bh_submit_read(struct buffer_head *bh);
311 static inline void get_bh(struct buffer_head *bh) in get_bh()
316 static inline void put_bh(struct buffer_head *bh) in put_bh()
322 static inline void brelse(struct buffer_head *bh) in brelse()
328 static inline void bforget(struct buffer_head *bh) in bforget()
334 static inline struct buffer_head *
340 static inline struct buffer_head *
358 static inline struct buffer_head *
365 static inline struct buffer_head *
371 static inline struct buffer_head *
378 map_bh(struct buffer_head *bh, struct super_block *sb, sector_t block) in map_bh()
386 static inline void wait_on_buffer(struct buffer_head *bh) in wait_on_buffer()
393 static inline int trylock_buffer(struct buffer_head *bh) in trylock_buffer()
398 static inline void lock_buffer(struct buffer_head *bh) in lock_buffer()
405 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, in getblk_unmovable()
412 static inline struct buffer_head *__getblk(struct block_device *bdev, in __getblk()
429 static inline struct buffer_head *