ext4_journal: handle EXT4_FINCOM_RECOVER flag properly.
[lwext4.git] / lwext4 / ext4_ialloc.h
index f796b615ff26a3cdafdf1cab57098e4c56790ec3..cea3fe6bb47f2bfdf7a9efc5860af325659fb589 100644 (file)
@@ -49,6 +49,14 @@ extern "C" {
 #include "ext4_config.h"
 #include "ext4_types.h"
 
+/**@brief Calculate and set checksum of inode bitmap.
+ * @param sb superblock pointer.
+ * @param bg block group
+ * @param bitmap bitmap buffer
+ */
+void ext4_ialloc_set_bitmap_csum(struct ext4_sblock *sb, struct ext4_bgroup *bg,
+                                void *bitmap);
+
 /**@brief Free i-node number and modify filesystem data structers.
  * @param fs     Filesystem, where the i-node is located
  * @param index  Index of i-node to be release
@@ -69,6 +77,7 @@ int ext4_ialloc_alloc_inode(struct ext4_fs *fs, uint32_t *index, bool is_dir);
 #ifdef __cplusplus
 }
 #endif
+
 #endif /* EXT4_IALLOC_H_ */
 
 /**