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)
commit39bba40b7a1467ddba1a47a78dca0ab7a728d0b7
tree16ce26b2c7bb9c2fcb598d7396069537d61da6b5
parent5fe2fe895a9a6b857e2f3a7fc5b8f080b03fd55f
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