tmp_suning_uos_patched/fs/ext4
Jan Kara 4e7ea81db5 ext4: restructure writeback path
There are two issues with current writeback path in ext4.  For one we
don't necessarily map complete pages when blocksize < pagesize and
thus needn't do any writeback in one iteration.  We always map some
blocks though so we will eventually finish mapping the page.  Just if
writeback races with other operations on the file, forward progress is
not really guaranteed. The second problem is that current code
structure makes it hard to associate all the bios to some range of
pages with one io_end structure so that unwritten extents can be
converted after all the bios are finished.  This will be especially
difficult later when io_end will be associated with reserved
transaction handle.

We restructure the writeback path to a relatively simple loop which
first prepares extent of pages, then maps one or more extents so that
no page is partially mapped, and once page is fully mapped it is
submitted for IO. We keep all the mapping and IO submission
information in mpage_da_data structure to somewhat reduce stack usage.
Resulting code is somewhat shorter than the old one and hopefully also
easier to read.

Reviewed-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2013-06-04 13:17:40 -04:00
..
acl.c
acl.h
balloc.c ext4: mark all metadata I/O with REQ_META 2013-04-20 15:46:17 -04:00
bitmap.c
block_validity.c
dir.c ext4: fix readdir error in the case of inline_data+dir_index 2013-04-19 17:53:09 -04:00
ext4_extents.h
ext4_jbd2.c ext4: provide wrappers for transaction reservation calls 2013-06-04 12:37:50 -04:00
ext4_jbd2.h ext4: provide wrappers for transaction reservation calls 2013-06-04 12:37:50 -04:00
ext4.h ext4: restructure writeback path 2013-06-04 13:17:40 -04:00
extents_status.c ext4: fix fio regression 2013-05-03 02:15:52 -04:00
extents_status.h ext4: fix fio regression 2013-05-03 02:15:52 -04:00
extents.c ext4: better estimate credits needed for ext4_da_writepages() 2013-06-04 13:01:11 -04:00
file.c ext4: fix overflows in SEEK_HOLE, SEEK_DATA implementations 2013-05-31 19:37:56 -04:00
fsync.c
hash.c
ialloc.c ext4: provide wrappers for transaction reservation calls 2013-06-04 12:37:50 -04:00
indirect.c ext4: improve writepage credit estimate for files with indirect blocks 2013-06-04 12:56:55 -04:00
inline.c ext4: fix data offset overflow on 32-bit archs in ext4_inline_data_fiemap() 2013-05-31 19:33:42 -04:00
inode.c ext4: restructure writeback path 2013-06-04 13:17:40 -04:00
ioctl.c
Kconfig ext4: fix Kconfig documentation for CONFIG_EXT4_DEBUG 2013-04-21 20:32:03 -04:00
Makefile
mballoc.c Fixed regressions (two stability regressions and a performance 2013-05-14 09:30:54 -07:00
mballoc.h
migrate.c
mmp.c ext4: mark all metadata I/O with REQ_META 2013-04-20 15:46:17 -04:00
move_extent.c
namei.c ext4: fix readdir error in the case of inline_data+dir_index 2013-04-19 17:53:09 -04:00
page-io.c ext4: restructure writeback path 2013-06-04 13:17:40 -04:00
resize.c ext4: add check for inodes_count overflow in new resize ioctl 2013-04-21 22:56:32 -04:00
super.c ext4: deprecate max_writeback_mb_bump sysfs attribute 2013-06-04 12:51:16 -04:00
symlink.c
truncate.h
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c
xattr.h