ref: 11294e1781cbd1c3598fc74141b89eee8ea026af
parent: bfc57e306d2ba02c3378b5145de1586de52f7e3a
author: gkostka <kostka.grzegorz@gmail.com>
date: Mon May 12 18:12:23 EDT 2014
Fixed extent warning
--- a/lwext4/ext4_extent.c
+++ b/lwext4/ext4_extent.c
@@ -584,6 +584,9 @@
--path_ptr;
}
+ if(!entries)
+ ext4_extent_header_set_depth(path->header, 0);
+
cleanup:
/*
* Put loaded blocks
@@ -593,9 +596,6 @@
if (path[i].block.lb_id)
ext4_block_set(inode_ref->fs->bdev, &path[i].block);
}
-
- if(!entries)
- ext4_extent_header_set_depth(path->header, 0);
/* Destroy temporary data structure */
free(path);