mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
bcache: add a comment
This commit is contained in:
parent
90d0ff6636
commit
65912ce44d
@ -150,18 +150,18 @@ bool bcache_invalidate(struct bcache *cache, int fd, block_address index);
|
|||||||
*/
|
*/
|
||||||
bool bcache_invalidate_fd(struct bcache *cache, int fd);
|
bool bcache_invalidate_fd(struct bcache *cache, int fd);
|
||||||
|
|
||||||
/*
|
|
||||||
* Prefetches the blocks neccessary to satisfy a byte range.
|
//----------------------------------------------------------------
|
||||||
*/
|
// The next four functions are utilities written in terms of the above api.
|
||||||
|
|
||||||
|
// Prefetches the blocks neccessary to satisfy a byte range.
|
||||||
void bcache_prefetch_bytes(struct bcache *cache, int fd, off_t start, size_t len);
|
void bcache_prefetch_bytes(struct bcache *cache, int fd, off_t start, size_t len);
|
||||||
|
|
||||||
/*
|
// Reads, writes and zeroes bytes. Returns false if errors occur.
|
||||||
* Reads and writes the bytes. Returns false if errors occur.
|
|
||||||
*/
|
|
||||||
bool bcache_read_bytes(struct bcache *cache, int fd, off_t start, size_t len, void *data);
|
bool bcache_read_bytes(struct bcache *cache, int fd, off_t start, size_t len, void *data);
|
||||||
bool bcache_write_bytes(struct bcache *cache, int fd, off_t start, size_t len, void *data);
|
bool bcache_write_bytes(struct bcache *cache, int fd, off_t start, size_t len, void *data);
|
||||||
bool bcache_write_zeros(struct bcache *cache, int fd, off_t start, size_t len);
|
bool bcache_write_zeros(struct bcache *cache, int fd, off_t start, size_t len);
|
||||||
|
|
||||||
/*----------------------------------------------------------------*/
|
//----------------------------------------------------------------
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user