Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libext2fs: find inode goal when allocating blocks
[tools/e2fsprogs.git]
/
lib
/
ext2fs
/
expanddir.c
diff --git
a/lib/ext2fs/expanddir.c
b/lib/ext2fs/expanddir.c
index
ecc13ae
..
9f02312
100644
(file)
--- a/
lib/ext2fs/expanddir.c
+++ b/
lib/ext2fs/expanddir.c
@@
-102,9
+102,13
@@
errcode_t ext2fs_expand_dir(ext2_filsys fs, ext2_ino_t dir)
if (retval)
return retval;
+ retval = ext2fs_read_inode(fs, dir, &inode);
+ if (retval)
+ return retval;
+
es.done = 0;
es.err = 0;
- es.goal =
0
;
+ es.goal =
ext2fs_find_inode_goal(fs, dir, &inode, 0)
;
es.newblocks = 0;
es.dir = dir;