diff options
| author | gkostka <kostka.grzegorz@gmail.com> | 2015-10-16 16:27:33 +0200 |
|---|---|---|
| committer | gkostka <kostka.grzegorz@gmail.com> | 2015-10-16 16:27:33 +0200 |
| commit | d15d9a8f91b8cf071c8d635d4643789104a3dcd8 (patch) | |
| tree | f5faefe5dff7d7602c3a7da3ca7e0585893da1d0 | |
| parent | 1bbaf87720870bd0c05e9856dadec5988163ecfd (diff) | |
Introduce EXT4_BLOCK_ZERO macro to initialize ext4_block
| -rw-r--r-- | lwext4/ext4_bcache.h | 2 |
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*/ |
