Lines Matching +full:cache +full:- +full:block
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2009-2011 Red Hat, Inc.
16 /*----------------------------------------------------------------*/
27 * Create a buffered IO cache on a given device
37 * Release a buffered IO cache.
53 * - At most one thread can hold at most "reserved_buffers" simultaneously.
54 * - Each other threads can hold at most one buffer.
55 * - Threads which call only dm_bufio_get can hold unlimited number of
60 * Read a given block from disk. Returns pointer to data. Returns a
64 void *dm_bufio_read(struct dm_bufio_client *c, sector_t block,
67 void *dm_bufio_read_with_ioprio(struct dm_bufio_client *c, sector_t block,
71 * Like dm_bufio_read, but return buffer from cache, don't read
72 * it. If the buffer is not in the cache, return NULL.
74 void *dm_bufio_get(struct dm_bufio_client *c, sector_t block,
81 void *dm_bufio_new(struct dm_bufio_client *c, sector_t block,
85 * Prefetch the specified blocks to the cache.
90 sector_t block, unsigned int n_blocks);
93 sector_t block, unsigned int n_blocks,
107 * dm_bufio_write_dirty_buffers guarantees that the buffer is on-disk but
115 * The specified part of the buffer is scheduled to be written. dm-bufio may
133 * Send an empty write barrier to the device to flush hardware disk cache.
140 int dm_bufio_issue_discard(struct dm_bufio_client *c, sector_t block, sector_t count);
147 void dm_bufio_forget(struct dm_bufio_client *c, sector_t block);
154 void dm_bufio_forget_buffers(struct dm_bufio_client *c, sector_t block, sector_t n_blocks);
169 /*----------------------------------------------------------------*/