summaryrefslogtreecommitdiff
path: root/lib/ext2fs/expanddir.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-04-09 11:39:11 -0400
committerTheodore Ts'o <tytso@mit.edu>2008-04-17 16:38:13 -0400
commit1ca1059fd0126fd2c065f272a566c18f14bab16d (patch)
tree65e5fa2bac751cfe71110b8b6f23344812da9f44 /lib/ext2fs/expanddir.c
parenta91b3f36dd48aabfacedb3c092fd88235b030d9c (diff)
downloade2fsprogs-1ca1059fd0126fd2c065f272a566c18f14bab16d.tar.gz
Add support for the HUGE_FILE feature
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs/expanddir.c')
-rw-r--r--lib/ext2fs/expanddir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/expanddir.c b/lib/ext2fs/expanddir.c
index 10a5149c..c124d3e1 100644
--- a/lib/ext2fs/expanddir.c
+++ b/lib/ext2fs/expanddir.c
@@ -116,7 +116,7 @@ errcode_t ext2fs_expand_dir(ext2_filsys fs, ext2_ino_t dir)
return retval;
inode.i_size += fs->blocksize;
- inode.i_blocks += (fs->blocksize / 512) * es.newblocks;
+ ext2fs_iblk_add_blocks(fs, &inode, es.newblocks);
retval = ext2fs_write_inode(fs, dir, &inode);
if (retval)