Lines Matching refs:buffer_head
55 static int submit_bh_wbc(int op, int op_flags, struct buffer_head *bh,
58 #define BH_ENTRY(list) list_entry((list), struct buffer_head, b_assoc_buffers)
60 inline void touch_buffer(struct buffer_head *bh) in touch_buffer()
67 void __lock_buffer(struct buffer_head *bh) in __lock_buffer()
73 void unlock_buffer(struct buffer_head *bh) in unlock_buffer()
89 struct buffer_head *head, *bh; in buffer_check_dirty_writeback()
120 void __wait_on_buffer(struct buffer_head * bh) in __wait_on_buffer()
126 static void buffer_io_error(struct buffer_head *bh, char *msg) in buffer_io_error()
142 static void __end_buffer_read_notouch(struct buffer_head *bh, int uptodate) in __end_buffer_read_notouch()
157 void end_buffer_read_sync(struct buffer_head *bh, int uptodate) in end_buffer_read_sync()
164 void end_buffer_write_sync(struct buffer_head *bh, int uptodate) in end_buffer_write_sync()
188 static struct buffer_head *
193 struct buffer_head *ret = NULL; in __find_get_block_slow()
195 struct buffer_head *bh; in __find_get_block_slow()
196 struct buffer_head *head; in __find_get_block_slow()
244 static void end_buffer_async_read(struct buffer_head *bh, int uptodate) in end_buffer_async_read()
247 struct buffer_head *first; in end_buffer_async_read()
248 struct buffer_head *tmp; in end_buffer_async_read()
300 struct buffer_head *bh;
307 struct buffer_head *bh = ctx->bh; in decrypt_bh()
320 static void end_buffer_async_read_io(struct buffer_head *bh, int uptodate) in end_buffer_async_read_io()
342 void end_buffer_async_write(struct buffer_head *bh, int uptodate) in end_buffer_async_write()
345 struct buffer_head *first; in end_buffer_async_write()
346 struct buffer_head *tmp; in end_buffer_async_write()
405 static void mark_buffer_async_read(struct buffer_head *bh) in mark_buffer_async_read()
411 static void mark_buffer_async_write_endio(struct buffer_head *bh, in mark_buffer_async_write_endio()
418 void mark_buffer_async_write(struct buffer_head *bh) in mark_buffer_async_write()
477 static void __remove_assoc_queue(struct buffer_head *bh) in __remove_assoc_queue()
501 struct buffer_head *bh; in osync_buffers_list()
562 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block()
570 void mark_buffer_dirty_inode(struct buffer_head *bh, struct inode *inode) in mark_buffer_dirty_inode()
626 struct buffer_head *head = page_buffers(page); in __set_page_dirty_buffers()
627 struct buffer_head *bh = head; in __set_page_dirty_buffers()
675 struct buffer_head *bh; in fsync_buffers_list()
793 struct buffer_head *bh = BH_ENTRY(list->next); in remove_inode_buffers()
814 struct buffer_head *alloc_page_buffers(struct page *page, unsigned long size, in alloc_page_buffers()
817 struct buffer_head *bh, *head; in alloc_page_buffers()
865 link_dev_buffers(struct page *page, struct buffer_head *head) in link_dev_buffers()
867 struct buffer_head *bh, *tail; in link_dev_buffers()
897 struct buffer_head *head = page_buffers(page); in init_page_buffers()
898 struct buffer_head *bh = head; in init_page_buffers()
934 struct buffer_head *bh; in grow_dev_page()
1017 static struct buffer_head *
1034 struct buffer_head *bh; in __getblk_slow()
1082 void mark_buffer_dirty(struct buffer_head *bh) in mark_buffer_dirty()
1117 void mark_buffer_write_io_error(struct buffer_head *bh) in mark_buffer_write_io_error()
1142 void __brelse(struct buffer_head * buf) in __brelse()
1156 void __bforget(struct buffer_head *bh) in __bforget()
1171 static struct buffer_head *__bread_slow(struct buffer_head *bh) in __bread_slow()
1206 struct buffer_head *bhs[BH_LRU_SIZE];
1231 static void bh_lru_install(struct buffer_head *bh) in bh_lru_install()
1233 struct buffer_head *evictee = bh; in bh_lru_install()
1266 static struct buffer_head *
1269 struct buffer_head *ret = NULL; in lookup_bh_lru()
1275 struct buffer_head *bh = __this_cpu_read(bh_lrus.bhs[i]); in lookup_bh_lru()
1301 struct buffer_head *
1304 struct buffer_head *bh = lookup_bh_lru(bdev, block, size); in __find_get_block()
1326 struct buffer_head *
1330 struct buffer_head *bh = __find_get_block(bdev, block, size); in __getblk_gfp()
1344 struct buffer_head *bh = __getblk(bdev, block, size); in __breadahead()
1355 struct buffer_head *bh = __getblk_gfp(bdev, block, size, gfp); in __breadahead_gfp()
1375 struct buffer_head *
1379 struct buffer_head *bh = __getblk_gfp(bdev, block, size, gfp); in __bread_gfp()
1442 void set_bh_page(struct buffer_head *bh, in set_bh_page()
1466 static void discard_buffer(struct buffer_head * bh) in discard_buffer()
1503 struct buffer_head *head, *bh, *next; in block_invalidatepage()
1558 struct buffer_head *bh, *head, *tail; in create_empty_buffers()
1613 struct buffer_head *bh; in clean_bdev_aliases()
1614 struct buffer_head *head; in clean_bdev_aliases()
1672 static struct buffer_head *create_page_buffers(struct page *page, struct inode *inode, unsigned int… in create_page_buffers()
1718 struct buffer_head *bh, *head; in __block_write_full_page()
1807 struct buffer_head *next = bh->b_this_page; in __block_write_full_page()
1861 struct buffer_head *next = bh->b_this_page; in __block_write_full_page()
1883 struct buffer_head *head, *bh; in page_zero_new_buffers()
1918 iomap_to_bh(struct inode *inode, sector_t block, struct buffer_head *bh, in iomap_to_bh()
1982 struct buffer_head *bh, *head, *wait[2], **wait_bh=wait; in __block_write_begin_int()
2070 struct buffer_head *bh, *head; in __block_commit_write()
2219 struct buffer_head *bh, *head; in block_is_partially_uptodate()
2263 struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE]; in block_read_full_page()
2543 static void end_buffer_read_nobh(struct buffer_head *bh, int uptodate) in end_buffer_read_nobh()
2553 static void attach_nobh_buffers(struct page *page, struct buffer_head *head) in attach_nobh_buffers()
2555 struct buffer_head *bh; in attach_nobh_buffers()
2585 struct buffer_head *head, *bh; in nobh_write_begin()
2723 struct buffer_head *head = fsdata; in nobh_write_end()
2724 struct buffer_head *bh; in nobh_write_end()
2805 struct buffer_head map_bh; in nobh_truncate_page()
2883 struct buffer_head *bh; in block_truncate_page()
2989 struct buffer_head tmp = { in generic_block_bmap()
3000 struct buffer_head *bh = bio->bi_private; in end_bio_bh_io_sync()
3009 static int submit_bh_wbc(int op, int op_flags, struct buffer_head *bh, in submit_bh_wbc()
3058 int submit_bh(int op, int op_flags, struct buffer_head *bh) in submit_bh()
3090 void ll_rw_block(int op, int op_flags, int nr, struct buffer_head *bhs[]) in ll_rw_block()
3095 struct buffer_head *bh = bhs[i]; in ll_rw_block()
3119 void write_dirty_buffer(struct buffer_head *bh, int op_flags) in write_dirty_buffer()
3137 int __sync_dirty_buffer(struct buffer_head *bh, int op_flags) in __sync_dirty_buffer()
3166 int sync_dirty_buffer(struct buffer_head *bh) in sync_dirty_buffer()
3192 static inline int buffer_busy(struct buffer_head *bh) in buffer_busy()
3199 drop_buffers(struct page *page, struct buffer_head **buffers_to_free) in drop_buffers()
3201 struct buffer_head *head = page_buffers(page); in drop_buffers()
3202 struct buffer_head *bh; in drop_buffers()
3212 struct buffer_head *next = bh->b_this_page; in drop_buffers()
3228 struct buffer_head *buffers_to_free = NULL; in try_to_free_buffers()
3262 struct buffer_head *bh = buffers_to_free; in try_to_free_buffers()
3265 struct buffer_head *next = bh->b_this_page; in try_to_free_buffers()
3307 struct buffer_head *alloc_buffer_head(gfp_t gfp_flags) in alloc_buffer_head()
3309 struct buffer_head *ret = kmem_cache_zalloc(bh_cachep, gfp_flags); in alloc_buffer_head()
3322 void free_buffer_head(struct buffer_head *bh) in free_buffer_head()
3354 int bh_uptodate_or_lock(struct buffer_head *bh) in bh_uptodate_or_lock()
3372 int bh_submit_read(struct buffer_head *bh) in bh_submit_read()
3397 sizeof(struct buffer_head), 0, in buffer_init()
3406 max_buffer_heads = nrpages * (PAGE_SIZE / sizeof(struct buffer_head)); in buffer_init()