]> 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)
commit6706169821cfba40d7c1382a7126532634389da5
tree16ce26b2c7bb9c2fcb598d7396069537d61da6b5
parentda1a265d62435c337b14f4847cd2541fba745e01
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