ext4: use io_end for multiple bios
authorJan Kara <jack@suse.cz>
Fri, 12 Apr 2013 03:56:53 +0000 (23:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Apr 2013 03:56:53 +0000 (23:56 -0400)
commit4eec708d263f0ee10861d69251708a225b64cac7
tree2db2d3f0431d98ed83d7e7ad8fbeaca7d7a2dcc2
parent0058f9658c94037173f7603fc8bae2007cc10253
ext4: use io_end for multiple bios

Change writeback path to create just one io_end structure for the
extent to which we submit IO and share it among bios writing that
extent. This prevents needless splitting and joining of unwritten
extents when they cannot be submitted as a single bio.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Dmitry Monakhov <dmonakhov@openvz.org>
Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/page-io.c