Lines Matching refs:buffer_head

49 struct buffer_head;
51 typedef void (bh_end_io_t)(struct buffer_head *bh, int uptodate);
62 struct buffer_head { struct
64 struct buffer_head *b_this_page;/* circular list of page's buffers */ argument
85 static inline void set_buffer_##name(struct buffer_head *bh) \
89 static inline void clear_buffer_##name(struct buffer_head *bh) \
93 static inline int buffer_##name(const struct buffer_head *bh) \
102 static inline int test_set_buffer_##name(struct buffer_head *bh) \
106 static inline int test_clear_buffer_##name(struct buffer_head *bh) \
140 ((struct buffer_head *)page_private(page)); \
151 void mark_buffer_dirty(struct buffer_head *bh);
152 void init_buffer(struct buffer_head *, bh_end_io_t *, void *);
153 void touch_buffer(struct buffer_head *bh);
154 void set_bh_page(struct buffer_head *bh,
157 struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size,
161 void end_buffer_read_sync(struct buffer_head *bh, int uptodate);
162 void end_buffer_write_sync(struct buffer_head *bh, int uptodate);
163 void end_buffer_async_write(struct buffer_head *bh, int uptodate);
166 void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode);
173 void mark_buffer_async_write(struct buffer_head *bh);
174 void __wait_on_buffer(struct buffer_head *);
175 wait_queue_head_t *bh_waitq_head(struct buffer_head *bh);
176 struct buffer_head *__find_get_block(struct block_device *bdev, sector_t block,
178 struct buffer_head *__getblk_gfp(struct block_device *bdev, sector_t block,
180 void __brelse(struct buffer_head *);
181 void __bforget(struct buffer_head *);
183 struct buffer_head *__bread_gfp(struct block_device *,
186 struct buffer_head *alloc_buffer_head(gfp_t gfp_flags);
187 void free_buffer_head(struct buffer_head * bh);
188 void unlock_buffer(struct buffer_head *bh);
189 void __lock_buffer(struct buffer_head *bh);
190 void ll_rw_block(int, int, struct buffer_head * bh[]);
191 int sync_dirty_buffer(struct buffer_head *bh);
192 int __sync_dirty_buffer(struct buffer_head *bh, int rw);
193 void write_dirty_buffer(struct buffer_head *bh, int rw);
194 int _submit_bh(int rw, struct buffer_head *bh, unsigned long bio_flags);
195 int submit_bh(int, struct buffer_head *);
198 int bh_uptodate_or_lock(struct buffer_head *bh);
199 int bh_submit_read(struct buffer_head *bh);
266 struct buffer_head *head) in attach_page_buffers()
273 static inline void get_bh(struct buffer_head *bh) in get_bh()
278 static inline void put_bh(struct buffer_head *bh) in put_bh()
284 static inline void brelse(struct buffer_head *bh) in brelse()
290 static inline void bforget(struct buffer_head *bh) in bforget()
296 static inline struct buffer_head *
302 static inline struct buffer_head *
314 static inline struct buffer_head *
321 static inline struct buffer_head *
327 static inline struct buffer_head *
334 map_bh(struct buffer_head *bh, struct super_block *sb, sector_t block) in map_bh()
342 static inline void wait_on_buffer(struct buffer_head *bh) in wait_on_buffer()
349 static inline int trylock_buffer(struct buffer_head *bh) in trylock_buffer()
354 static inline void lock_buffer(struct buffer_head *bh) in lock_buffer()
361 static inline struct buffer_head *getblk_unmovable(struct block_device *bdev, in getblk_unmovable()
368 static inline struct buffer_head *__getblk(struct block_device *bdev, in __getblk()
385 static inline struct buffer_head *