Lines Matching refs:buffer_head
64 #define BH_ENTRY(list) list_entry((list), struct buffer_head, b_inode_buffers)
71 static struct buffer_head **hash_table;
74 static struct buffer_head *lru_list[NR_LIST];
82 static struct buffer_head * unused_list;
89 static void __refile_buffer(struct buffer_head *);
133 static inline int write_buffer_delay(struct buffer_head *bh) in write_buffer_delay()
147 static inline void write_buffer(struct buffer_head *bh) in write_buffer()
163 void fastcall unlock_buffer(struct buffer_head *bh) in unlock_buffer()
185 void __wait_on_buffer(struct buffer_head * bh) in __wait_on_buffer()
221 void end_buffer_io_sync(struct buffer_head *bh, int uptodate) in end_buffer_io_sync()
232 static void write_locked_buffers(struct buffer_head **array, unsigned int count) in write_locked_buffers()
235 struct buffer_head * bh = *array++; in write_locked_buffers()
250 struct buffer_head *next; in write_some_buffers()
251 struct buffer_head *array[NRSYNC]; in write_some_buffers()
259 struct buffer_head * bh = next; in write_some_buffers()
311 struct buffer_head * next; in wait_for_buffers()
317 struct buffer_head *bh = next; in wait_for_buffers()
548 static inline void __insert_into_hash_list(struct buffer_head *bh) in __insert_into_hash_list()
550 struct buffer_head **head = &hash(bh->b_dev, bh->b_blocknr); in __insert_into_hash_list()
551 struct buffer_head *next = *head; in __insert_into_hash_list()
560 static __inline__ void __hash_unlink(struct buffer_head *bh) in __hash_unlink()
562 struct buffer_head **pprev = bh->b_pprev; in __hash_unlink()
564 struct buffer_head *next = bh->b_next; in __hash_unlink()
572 static void __insert_into_lru_list(struct buffer_head * bh, int blist) in __insert_into_lru_list()
574 struct buffer_head **bhp = &lru_list[blist]; in __insert_into_lru_list()
590 static void __remove_from_lru_list(struct buffer_head * bh) in __remove_from_lru_list()
592 struct buffer_head *next = bh->b_next_free; in __remove_from_lru_list()
594 struct buffer_head *prev = bh->b_prev_free; in __remove_from_lru_list()
613 static void __remove_from_queues(struct buffer_head *bh) in __remove_from_queues()
619 static void remove_from_queues(struct buffer_head *bh) in remove_from_queues()
628 struct buffer_head * get_hash_table(kdev_t dev, int block, int size) in get_hash_table()
630 struct buffer_head *bh, **p = &hash(dev, block); in get_hash_table()
653 void fastcall buffer_insert_list(struct buffer_head *bh, struct list_head *list) in buffer_insert_list()
667 static void __remove_inode_queue(struct buffer_head *bh) in __remove_inode_queue()
673 static inline void remove_inode_queue(struct buffer_head *bh) in remove_inode_queue()
725 struct buffer_head * bh, * bh_next; in invalidate_bdev()
798 void init_buffer(struct buffer_head *bh, bh_end_io_t *handler, void *private) in init_buffer()
805 void end_buffer_io_async(struct buffer_head * bh, int uptodate) in end_buffer_io_async()
809 struct buffer_head *tmp; in end_buffer_io_async()
865 inline void set_buffer_async_io(struct buffer_head *bh) in set_buffer_async_io()
892 struct buffer_head *bh; in fsync_buffers_list()
960 struct buffer_head *bh; in osync_buffers_list()
1013 struct buffer_head * getblk(kdev_t dev, int block, int size) in getblk()
1016 struct buffer_head * bh; in getblk()
1096 inline void fastcall __mark_dirty(struct buffer_head *bh) in __mark_dirty()
1104 void fastcall __mark_buffer_dirty(struct buffer_head *bh) in __mark_buffer_dirty()
1110 void fastcall mark_buffer_dirty(struct buffer_head *bh) in mark_buffer_dirty()
1120 void set_buffer_flushtime(struct buffer_head *bh) in set_buffer_flushtime()
1136 static void __refile_buffer(struct buffer_head *bh) in __refile_buffer()
1152 void refile_buffer(struct buffer_head *bh) in refile_buffer()
1162 void __brelse(struct buffer_head * buf) in __brelse()
1175 void __bforget(struct buffer_head * buf) in __bforget()
1189 struct buffer_head * bread(kdev_t dev, int block, int size) in bread()
1191 struct buffer_head * bh; in bread()
1208 static void __put_unused_buffer_head(struct buffer_head * bh) in __put_unused_buffer_head()
1225 void put_unused_buffer_head(struct buffer_head *bh) in put_unused_buffer_head()
1238 struct buffer_head * get_unused_buffer_head(int async) in get_unused_buffer_head()
1240 struct buffer_head * bh; in get_unused_buffer_head()
1282 void set_bh_page (struct buffer_head *bh, struct page *page, unsigned long offset) in set_bh_page()
1305 static struct buffer_head * create_buffers(struct page * page, unsigned long size, int async) in create_buffers()
1307 struct buffer_head *bh, *head; in create_buffers()
1375 static void discard_buffer(struct buffer_head * bh) in discard_buffer()
1424 struct buffer_head *head, *bh, *next; in discard_bh_page()
1467 struct buffer_head *bh, *head, *tail; in create_empty_buffers()
1500 static void unmap_underlying_metadata(struct buffer_head * bh) in unmap_underlying_metadata()
1502 struct buffer_head *old_bh; in unmap_underlying_metadata()
1533 struct buffer_head *bh, *head; in __block_write_full_page()
1580 struct buffer_head *next = bh->b_this_page; in __block_write_full_page()
1611 struct buffer_head *next = bh->b_this_page; in __block_write_full_page()
1632 struct buffer_head *bh, *head, *wait[2], **wait_bh=wait; in __block_prepare_write()
1736 struct buffer_head *bh, *head; in __block_commit_write()
1781 struct buffer_head *bh, *head, *arr[MAX_BUF_PER_PAGE]; in block_read_full_page()
1837 struct buffer_head * bh = arr[i]; in block_read_full_page()
1844 struct buffer_head * bh = arr[i]; in block_read_full_page()
2029 struct buffer_head *bh; in block_truncate_page()
2143 struct buffer_head *bh, *head = page->buffers; in writeout_one_page()
2166 struct buffer_head *bh, *head = page->buffers; in waitfor_one_page()
2180 struct buffer_head tmp; in generic_block_bmap()
2199 struct buffer_head bh; in generic_direct_IO()
2261 static void end_buffer_io_kiobuf(struct buffer_head *bh, int uptodate) in end_buffer_io_kiobuf()
2277 static int wait_kio(int rw, int nr, struct buffer_head *bh[], int size) in wait_kio()
2281 struct buffer_head *tmp; in wait_kio()
2330 struct buffer_head *tmp, **bhs = NULL; in brw_kiovec()
2454 struct buffer_head *head, *bh; in brw_page()
2474 struct buffer_head *next = bh->b_this_page; in brw_page()
2518 static inline void link_dev_buffers(struct page * page, struct buffer_head *head) in link_dev_buffers()
2520 struct buffer_head *bh, *tail; in link_dev_buffers()
2538 struct buffer_head *bh; in grow_dev_page()
2569 struct buffer_head *head = page->buffers; in hash_page_buffers()
2570 struct buffer_head *bh = head; in hash_page_buffers()
2677 static int sync_page_buffers(struct buffer_head *head) in sync_page_buffers()
2679 struct buffer_head * bh = head; in sync_page_buffers()
2737 struct buffer_head * tmp, * bh = page->buffers; in try_to_free_buffers()
2756 struct buffer_head * p = tmp; in try_to_free_buffers()
2802 struct buffer_head * bh; in show_buffers()
2866 mempages *= sizeof(struct buffer_head *); in buffer_init()
2877 nr_hash = (PAGE_SIZE << order) / sizeof(struct buffer_head *); in buffer_init()
2885 hash_table = (struct buffer_head **) in buffer_init()
2941 struct buffer_head *bh; in sync_old_buffers()