Lines Matching refs:dm_bufio_client
356 struct dm_bufio_client *c;
977 struct dm_bufio_client { struct
1021 static void dm_bufio_lock(struct dm_bufio_client *c) in dm_bufio_lock() argument
1029 static void dm_bufio_unlock(struct dm_bufio_client *c) in dm_bufio_unlock()
1176 static void *alloc_buffer_data(struct dm_bufio_client *c, gfp_t gfp_mask, in alloc_buffer_data()
1199 static void free_buffer_data(struct dm_bufio_client *c, in free_buffer_data()
1226 static struct dm_buffer *alloc_buffer(struct dm_bufio_client *c, gfp_t gfp_mask) in alloc_buffer()
1253 struct dm_bufio_client *c = b->c; in free_buffer()
1358 static inline sector_t block_to_sector(struct dm_bufio_client *c, sector_t block) in block_to_sector()
1422 struct dm_bufio_client *c = b->c; in write_endio()
1499 struct dm_bufio_client *c = context; in is_clean()
1531 static struct dm_buffer *__get_unclaimed_buffer(struct dm_bufio_client *c) in __get_unclaimed_buffer()
1561 static void __wait_for_free_buffer(struct dm_bufio_client *c) in __wait_for_free_buffer()
1594 static struct dm_buffer *__alloc_buffer_wait_no_callback(struct dm_bufio_client *c, enum new_flag n… in __alloc_buffer_wait_no_callback()
1647 static struct dm_buffer *__alloc_buffer_wait(struct dm_bufio_client *c, enum new_flag nf) in __alloc_buffer_wait()
1665 struct dm_bufio_client *c = b->c; in __free_buffer_wake()
1694 static void __move_clean_buffers(struct dm_bufio_client *c) in __move_clean_buffers()
1715 static void __write_dirty_buffers_async(struct dm_bufio_client *c, int no_wait, in __write_dirty_buffers_async()
1729 static void __check_watermark(struct dm_bufio_client *c, in __check_watermark()
1743 static void cache_put_and_wake(struct dm_bufio_client *c, struct dm_buffer *b) in cache_put_and_wake()
1758 static struct dm_buffer *__bufio_new(struct dm_bufio_client *c, sector_t block, in __bufio_new()
1854 static void *new_read(struct dm_bufio_client *c, sector_t block, in new_read()
1927 void *dm_bufio_get(struct dm_bufio_client *c, sector_t block, in dm_bufio_get()
1934 static void *__dm_bufio_read(struct dm_bufio_client *c, sector_t block, in __dm_bufio_read()
1943 void *dm_bufio_read(struct dm_bufio_client *c, sector_t block, in dm_bufio_read()
1950 void *dm_bufio_read_with_ioprio(struct dm_bufio_client *c, sector_t block, in dm_bufio_read_with_ioprio()
1957 void *dm_bufio_new(struct dm_bufio_client *c, sector_t block, in dm_bufio_new()
1967 static void __dm_bufio_prefetch(struct dm_bufio_client *c, in __dm_bufio_prefetch()
2021 void dm_bufio_prefetch(struct dm_bufio_client *c, sector_t block, unsigned int n_blocks) in dm_bufio_prefetch()
2027 void dm_bufio_prefetch_with_ioprio(struct dm_bufio_client *c, sector_t block, in dm_bufio_prefetch_with_ioprio()
2036 struct dm_bufio_client *c = b->c; in dm_bufio_release()
2066 struct dm_bufio_client *c = b->c; in dm_bufio_mark_partial_buffer_dirty()
2096 void dm_bufio_write_dirty_buffers_async(struct dm_bufio_client *c) in dm_bufio_write_dirty_buffers_async()
2124 int dm_bufio_write_dirty_buffers(struct dm_bufio_client *c) in dm_bufio_write_dirty_buffers()
2180 int dm_bufio_issue_flush(struct dm_bufio_client *c) in dm_bufio_issue_flush()
2204 int dm_bufio_issue_discard(struct dm_bufio_client *c, sector_t block, sector_t count) in dm_bufio_issue_discard()
2225 static bool forget_buffer(struct dm_bufio_client *c, sector_t block) in forget_buffer()
2250 void dm_bufio_forget(struct dm_bufio_client *c, sector_t block) in dm_bufio_forget()
2263 void dm_bufio_forget_buffers(struct dm_bufio_client *c, sector_t block, sector_t n_blocks) in dm_bufio_forget_buffers()
2271 void dm_bufio_set_minimum_buffers(struct dm_bufio_client *c, unsigned int n) in dm_bufio_set_minimum_buffers()
2277 unsigned int dm_bufio_get_block_size(struct dm_bufio_client *c) in dm_bufio_get_block_size()
2283 sector_t dm_bufio_get_device_size(struct dm_bufio_client *c) in dm_bufio_get_device_size()
2299 struct dm_io_client *dm_bufio_get_dm_io_client(struct dm_bufio_client *c) in dm_bufio_get_dm_io_client()
2323 struct dm_bufio_client *dm_bufio_get_client(struct dm_buffer *b) in dm_bufio_get_client()
2345 static void drop_buffers(struct dm_bufio_client *c) in drop_buffers()
2380 static unsigned long get_retain_buffers(struct dm_bufio_client *c) in get_retain_buffers()
2392 static void __scan(struct dm_bufio_client *c) in __scan()
2424 struct dm_bufio_client *c = container_of(w, struct dm_bufio_client, shrink_work); in shrink_work()
2433 struct dm_bufio_client *c; in dm_bufio_shrink_scan()
2444 struct dm_bufio_client *c = shrink->private_data; in dm_bufio_shrink_count()
2465 struct dm_bufio_client *dm_bufio_client_create(struct block_device *bdev, unsigned int block_size, in dm_bufio_client_create()
2473 struct dm_bufio_client *c; in dm_bufio_client_create()
2608 void dm_bufio_client_destroy(struct dm_bufio_client *c) in dm_bufio_client_destroy()
2652 void dm_bufio_client_reset(struct dm_bufio_client *c) in dm_bufio_client_reset()
2659 void dm_bufio_set_sector_offset(struct dm_bufio_client *c, sector_t start) in dm_bufio_set_sector_offset()
2717 static unsigned long __evict_many(struct dm_bufio_client *c, in __evict_many()
2743 static void evict_old_buffers(struct dm_bufio_client *c, unsigned long age_hz) in evict_old_buffers()
2769 struct dm_bufio_client *c; in cleanup_old_buffers()
2797 static struct dm_bufio_client *__pop_client(void) in __pop_client()
2806 return container_of(h, struct dm_bufio_client, client_list); in __pop_client()
2813 static void __insert_client(struct dm_bufio_client *new_client) in __insert_client()
2815 struct dm_bufio_client *c; in __insert_client()
2819 c = container_of(h, struct dm_bufio_client, client_list); in __insert_client()
2831 struct dm_bufio_client *c; in __evict_a_few()
2857 struct dm_bufio_client *c; in check_watermarks()