]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Adjust ext4_da_writepages() to write out larger contiguous chunks
authorTheodore Ts'o <tytso@mit.edu>
Tue, 29 Sep 2009 17:31:31 +0000 (13:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 29 Sep 2009 17:31:31 +0000 (13:31 -0400)
commit6fb8a577bdd27f2a5fc2317618f3bbc36270f753
tree40dbc77de3e7a426030bd740ba8e2fd0d2171523
parent20ca1f2015aad5ba6deac0f1cd11f2ff7cf350b5
ext4: Adjust ext4_da_writepages() to write out larger contiguous chunks

Work around problems in the writeback code to force out writebacks in
larger chunks than just 4mb, which is just too small.  This also works
around limitations in the ext4 block allocator, which can't allocate
more than 2048 blocks at a time.  So we need to defeat the round-robin
characteristics of the writeback code and try to write out as many
blocks in one inode before allowing the writeback code to move on to
another inode.  We add a a new per-filesystem tunable,
max_writeback_mb_bump, which caps this to a default of 128mb per
inode.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/super.c
include/trace/events/ext4.h