summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2015-10-16 16:27:33 +0200
committergkostka <kostka.grzegorz@gmail.com>2015-10-16 16:27:33 +0200
commitd15d9a8f91b8cf071c8d635d4643789104a3dcd8 (patch)
treef5faefe5dff7d7602c3a7da3ca7e0585893da1d0
parent1bbaf87720870bd0c05e9856dadec5988163ecfd (diff)
Introduce EXT4_BLOCK_ZERO macro to initialize ext4_block
-rw-r--r--lwext4/ext4_bcache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lwext4/ext4_bcache.h b/lwext4/ext4_bcache.h
index e080664..ce1ffc7 100644
--- a/lwext4/ext4_bcache.h
+++ b/lwext4/ext4_bcache.h
@@ -42,6 +42,8 @@
#include <stdint.h>
#include <stdbool.h>
+#define EXT4_BLOCK_ZERO() {.dirty = 0, .lb_id = 0, .cache_id = 0, .data = 0}
+
/**@brief Single block descriptor*/
struct ext4_block {
/**@brief Dirty flag*/