]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: stop messing with nr_to_write in ext4_da_writepages()
authorJan Kara <jack@suse.cz>
Tue, 4 Jun 2013 16:50:24 +0000 (12:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 4 Jun 2013 16:50:24 +0000 (12:50 -0400)
commitf7a5d6aba5f35b2978bc8e2ba399fe24896cad1f
tree16ce26b2c7bb9c2fcb598d7396069537d61da6b5
parent29b13d6a7f4b9b6a97d20fec536c89c9bd12fb31
ext4: stop messing with nr_to_write in ext4_da_writepages()

Writeback code got better in how it submits IO and now the number of
pages requested to be written is usually higher than original 1024.
The number is now dynamically computed based on observed throughput
and is set to be about 0.5 s worth of writeback.  E.g. on ordinary
SATA drive this ends up somewhere around 10000 as my testing shows.
So remove the unnecessary smarts from ext4_da_writepages().

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>
fs/ext4/inode.c