ref: d15d9a8f91b8cf071c8d635d4643789104a3dcd8
parent: 1bbaf87720870bd0c05e9856dadec5988163ecfd
author: gkostka <[email protected]>
date: Fri Oct 16 12:27:33 EDT 2015
Introduce EXT4_BLOCK_ZERO macro to initialize ext4_block
--- 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*/