shithub: lwext4

Download patch

ref: 47bbb862d874321903f8881761ee7ca94674142a
parent: faa76ad23b0ce89d3f0f6bb53740fb47d42ca9f3
author: Kaho Ng <ngkaho1234@gmail.com>
date: Thu Jun 22 00:20:43 EDT 2017

ext4_balloc: fix not creating revoke records correctly

We fix ext4_balloc_free_blocks() not creating revoke records
correctly according to start block and block count parameter
from caller.

--- a/src/ext4_balloc.c
+++ b/src/ext4_balloc.c
@@ -336,7 +336,7 @@
 
 	uint32_t i;
 	for (i = 0;i < blk_cnt;i++) {
-		rc = ext4_trans_try_revoke_block(fs->bdev, first + i);
+		rc = ext4_trans_try_revoke_block(fs->bdev, start_block + i);
 		if (rc != EOK)
 			return rc;