projects
/
lwext4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
030a651
)
ext4_extent: some comments cleanup in ext4_ext_correct_indexes.
author
ngkaho1234
<ngkaho1234@gmail.com>
Fri, 15 Jan 2016 09:58:54 +0000
(09:58 +0000)
committer
ngkaho1234
<ngkaho1234@gmail.com>
Fri, 15 Jan 2016 11:54:42 +0000
(11:54 +0000)
lwext4/ext4_extent.c
patch
|
blob
|
history
diff --git
a/lwext4/ext4_extent.c
b/lwext4/ext4_extent.c
index 3705e8a5631c0b1128513acbee3bba198dbf098d..2c0ad527d1978967737c2cf949c5b4a9a98acd54 100644
(file)
--- a/
lwext4/ext4_extent.c
+++ b/
lwext4/ext4_extent.c
@@
-844,9
+844,8
@@
static int ext4_ext_correct_indexes(struct ext4_inode_ref *inode_ref,
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
@@
static int ext4_ext_correct_indexes(struct ext4_inode_ref *inode_ref,
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;