]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
AOSP: libext2fs: merge contiguous data blocks when writing to sparse file
authorJin Qian <jinqian@google.com>
Mon, 19 Dec 2016 18:53:20 +0000 (10:53 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 24 May 2017 02:50:36 +0000 (22:50 -0400)
commitb27343db82d11ec237e0fdd1b58bf63513f982e5
tree142a0cc20bad24bd9e00c92380f206c34797085a
parentd838f79e7f8c77fa9d5a71eb5e805644cded6607
AOSP: libext2fs: merge contiguous data blocks when writing to sparse file

Sparse IO manager allocates one block at a time. This creates many
blocks in sparse file even though most of them are contiguous. As a
result, fastboot is extremely slow writing that many blocks. Merging
contiguous blocks reduces block count and flash time significantly.

Change-Id: I211312d24d7423c7f160ee501fe8b62ddf14a847
From AOSP commit: 6ef6efab23203e967625160e6af4140954e15e91

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