From 1ca1059fd0126fd2c065f272a566c18f14bab16d Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 9 Apr 2008 11:39:11 -0400 Subject: Add support for the HUGE_FILE feature Signed-off-by: "Theodore Ts'o" --- lib/ext2fs/expanddir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ext2fs/expanddir.c') 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) -- cgit v1.2.3