Whamcloud - gitweb
ext2fs: Optimize extending an extent-mapped file using ext2fs_block_iterate2()
authorTheodore Ts'o <tytso@mit.edu>
Thu, 11 Mar 2010 17:47:41 +0000 (12:47 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Mar 2010 20:58:54 +0000 (15:58 -0500)
commit8e2399d57ac2bec1830e27deeeac66002d81001c
tree0a1ff960f6b45ec61e59d4f7fb5e5ffd388b9c8c
parent4ffafee26cf791c0c651c08d3dcefcdd363bf127
ext2fs: Optimize extending an extent-mapped file using ext2fs_block_iterate2()

When ext2fs_block_iterate2() is called on an extent-mapped file with a
depth > 1, it will erroneously calling the callback function starting
all over again with an offset of logical block 0.  It shouldn't do
this, and it cases mke2fs to become very slow when creating files with
very large journals.

Fix this.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/block.c