summaryrefslogtreecommitdiff
path: root/debugfs
diff options
context:
space:
mode:
authorArtem Blagodarenko <artem.blagodarenko@seagate.com>2017-02-15 20:45:00 +0300
committerTheodore Ts'o <tytso@mit.edu>2017-04-13 11:53:38 -0400
commitae9efd05a9860b53691884f5fed40d37fc3d7edb (patch)
tree1d13a4cb0aaa0861926c30bdae4c92be24f7aff0 /debugfs
parent3f0cf647539970474be8f607017ca7eccfc2fbbe (diff)
e2fsck: 3 level hash tree directory optimization
e2fsck fix for partitions with 3 level hash directries. Additional level is added to e2fsck -D codepath. Signed-off-by: Artem Blagodarenko <artem.blagodarenko@seagate.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'debugfs')
-rw-r--r--debugfs/htree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/debugfs/htree.c b/debugfs/htree.c
index 54e55e20..8c18666d 100644
--- a/debugfs/htree.c
+++ b/debugfs/htree.c
@@ -287,7 +287,8 @@ void do_htree_dump(int argc, char *argv[])
fprintf(pager, "\t Indirect levels: %d\n", rootnode->indirect_levels);
fprintf(pager, "\t Flags: %d\n", rootnode->unused_flags);
- ent = (struct ext2_dx_entry *) (buf + 24 + rootnode->info_length);
+ ent = (struct ext2_dx_entry *)
+ ((char *)rootnode + rootnode->info_length);
htree_dump_int_node(current_fs, ino, &inode, rootnode, ent,
buf + current_fs->blocksize,