shithub: lwext4

Download patch

ref: dba02ea68719d50d0fd45d4edf2eac5f81c83fd6
parent: 030a65192386f34b69bc0f59b266643540f902ea
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Fri Jan 15 04:58:54 EST 2016

ext4_extent: some comments cleanup in ext4_ext_correct_indexes.

--- a/lwext4/ext4_extent.c
+++ b/lwext4/ext4_extent.c
@@ -844,9 +844,8 @@
 	eh = path[depth].header;
 	ex = path[depth].extent;
 
-	if (ex == NULL || eh == NULL) {
+	if (ex == NULL || eh == NULL)
 		return EIO;
-	}
 
 	if (depth == 0) {
 		/* there is no tree at all */
@@ -858,9 +857,6 @@
 		return EOK;
 	}
 
-	/*
-	 * TODO: we need correction if border is smaller than current one
-	 */
 	k = depth - 1;
 	border = path[depth].extent->first_block;
 	path[k].index->first_block = border;