#include "dm-bufio.h"
#include <linux/device-mapper.h>
#include <linux/dm-io.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/shrinker.h>
#include <linux/module.h>
Go to the source code of this file.
|
void * | dm_bufio_get (struct dm_bufio_client *c, sector_t block, struct dm_buffer **bp) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_get) |
|
void * | dm_bufio_read (struct dm_bufio_client *c, sector_t block, struct dm_buffer **bp) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_read) |
|
void * | dm_bufio_new (struct dm_bufio_client *c, sector_t block, struct dm_buffer **bp) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_new) |
|
void | dm_bufio_prefetch (struct dm_bufio_client *c, sector_t block, unsigned n_blocks) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_prefetch) |
|
void | dm_bufio_release (struct dm_buffer *b) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_release) |
|
void | dm_bufio_mark_buffer_dirty (struct dm_buffer *b) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_mark_buffer_dirty) |
|
void | dm_bufio_write_dirty_buffers_async (struct dm_bufio_client *c) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_write_dirty_buffers_async) |
|
int | dm_bufio_write_dirty_buffers (struct dm_bufio_client *c) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_write_dirty_buffers) |
|
int | dm_bufio_issue_flush (struct dm_bufio_client *c) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_issue_flush) |
|
void | dm_bufio_release_move (struct dm_buffer *b, sector_t new_block) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_release_move) |
|
unsigned | dm_bufio_get_block_size (struct dm_bufio_client *c) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_get_block_size) |
|
sector_t | dm_bufio_get_device_size (struct dm_bufio_client *c) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_get_device_size) |
|
sector_t | dm_bufio_get_block_number (struct dm_buffer *b) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_get_block_number) |
|
void * | dm_bufio_get_block_data (struct dm_buffer *b) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_get_block_data) |
|
void * | dm_bufio_get_aux_data (struct dm_buffer *b) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_get_aux_data) |
|
struct dm_bufio_client * | dm_bufio_get_client (struct dm_buffer *b) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_get_client) |
|
struct dm_bufio_client * | dm_bufio_client_create (struct block_device *bdev, unsigned block_size, unsigned reserved_buffers, unsigned aux_size, void(*alloc_callback)(struct dm_buffer *), void(*write_callback)(struct dm_buffer *)) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_client_create) |
|
void | dm_bufio_client_destroy (struct dm_bufio_client *c) |
|
| EXPORT_SYMBOL_GPL (dm_bufio_client_destroy) |
|
#define DM_BUFIO_BLOCK_SIZE_SLAB_LIMIT (PAGE_SIZE >> 1) |
#define DM_BUFIO_CACHE |
( |
|
c | ) |
(dm_bufio_caches[dm_bufio_cache_index(c)]) |
#define DM_BUFIO_CACHE_NAME |
( |
|
c | ) |
(dm_bufio_cache_names[dm_bufio_cache_index(c)]) |
#define dm_bufio_cond_resched |
( |
| ) |
do { } while (0) |
#define DM_BUFIO_DEFAULT_AGE_SECS 60 |
#define DM_BUFIO_HASH |
( |
|
block | ) |
|
#define DM_BUFIO_HASH_BITS 20 |
#define DM_BUFIO_INLINE_VECS 16 |
#define DM_BUFIO_MEMORY_PERCENT 2 |
#define DM_BUFIO_MIN_BUFFERS 8 |
#define DM_BUFIO_VMALLOC_PERCENT 25 |
#define DM_BUFIO_WORK_TIMER_SECS 10 |
#define DM_BUFIO_WRITEBACK_PERCENT 75 |
#define DM_MSG_PREFIX "bufio" |
- Enumerator:
DATA_MODE_SLAB |
|
DATA_MODE_GET_FREE_PAGES |
|
DATA_MODE_VMALLOC |
|
DATA_MODE_LIMIT |
|
Definition at line 128 of file dm-bufio.c.
- Enumerator:
NF_FRESH |
|
NF_READ |
|
NF_GET |
|
NF_PREFETCH |
|
Definition at line 697 of file dm-bufio.c.