shithub: lwext4

Download patch

ref: b5b25a0e9d3ffaa663e3a94540442f19d8df1883
parent: 29a73e9885259417b092353ca98efead05b4ad99
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Tue Oct 27 14:37:57 EDT 2015

ext4_balloc_bitmap_csum: should be blocks_per_group / 8.

--- a/lwext4/ext4_balloc.c
+++ b/lwext4/ext4_balloc.c
@@ -91,7 +91,7 @@
 		checksum = ext4_crc32c(~0, sb->uuid, sizeof(sb->uuid));
 		/* Then calculate crc32 checksum against block_group_desc */
 		checksum = ext4_crc32c(checksum, bitmap,
-				     (blocks_per_group + 7) / 8);
+				     blocks_per_group / 8);
 	}
 	return checksum;
 }