summaryrefslogtreecommitdiff
path: root/include/ext4_bcache.h
diff options
context:
space:
mode:
authorKaho Ng <ngkaho1234@gmail.com>2016-04-27 19:11:31 +0800
committerKaho Ng <ngkaho1234@gmail.com>2016-04-30 16:18:00 +0800
commit8281a97813ef19452be1ce6ec1a6c40e483f12f1 (patch)
tree46fe725d3b7de77cc98268b2d571a6fa45f37550 /include/ext4_bcache.h
parent2a5abdbf8c1375f83edde31831cd8b0bb36bc6d8 (diff)
ext4_journal: numorous changes.
- Do not utilize jbd_block_rec::buf because it can be unreliable that jbd_block_rec::buf may be freed. - Do not need to flush buffers before a new transaction is going to reference them. - add some comments to the changes.
Diffstat (limited to 'include/ext4_bcache.h')
-rw-r--r--include/ext4_bcache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ext4_bcache.h b/include/ext4_bcache.h
index bceb75a..b7ae438 100644
--- a/include/ext4_bcache.h
+++ b/include/ext4_bcache.h
@@ -239,6 +239,12 @@ struct ext4_buf *ext4_buf_lowest_lru(struct ext4_bcache *bc);
* @param buf buffer*/
void ext4_bcache_drop_buf(struct ext4_bcache *bc, struct ext4_buf *buf);
+/**@brief Invalidate a buffer.
+ * @param bc block cache descriptor
+ * @param buf buffer*/
+void ext4_bcache_invalidate_buf(struct ext4_bcache *bc,
+ struct ext4_buf *buf);
+
/**@brief Invalidate a range of buffers.
* @param bc block cache descriptor
* @param from starting lba