summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2018-05-03 09:14:59 +0100
committerJoe Thornber <ejt@redhat.com>2018-05-03 09:21:10 +0100
commit65912ce44dcf8d8b3d9d17a88363f913160a338a (patch)
tree0cf6c52381049371f73c3ff817a470d055423b3e /lib
parent90d0ff66362f3f21f79b5204bcc072c12185883b (diff)
downloadlvm2-65912ce44dcf8d8b3d9d17a88363f913160a338a.tar.gz
bcache: add a comment
Diffstat (limited to 'lib')
-rw-r--r--lib/device/bcache.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/device/bcache.h b/lib/device/bcache.h
index 2b0d9659f..6a18d33ab 100644
--- a/lib/device/bcache.h
+++ b/lib/device/bcache.h
@@ -150,18 +150,18 @@ bool bcache_invalidate(struct bcache *cache, int fd, block_address index);
*/
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);
-/*
- * Reads and writes the bytes. Returns false if errors occur.
- */
+// Reads, writes and zeroes 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_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);
-/*----------------------------------------------------------------*/
+//----------------------------------------------------------------
#endif