diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-09-29 13:31:31 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-09-29 13:31:31 -0400 |
commit | 55138e0bc29c0751e2152df9ad35deea542f29b3 (patch) | |
tree | 40dbc77de3e7a426030bd740ba8e2fd0d2171523 /fs/ext4/ext4.h | |
parent | 71780577306fd1e76c7a92e3b308db624d03adb9 (diff) |
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>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index e227eea23f05..a58438e18d0b 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h | |||
@@ -942,6 +942,7 @@ struct ext4_sb_info { | |||
942 | unsigned int s_mb_stats; | 942 | unsigned int s_mb_stats; |
943 | unsigned int s_mb_order2_reqs; | 943 | unsigned int s_mb_order2_reqs; |
944 | unsigned int s_mb_group_prealloc; | 944 | unsigned int s_mb_group_prealloc; |
945 | unsigned int s_max_writeback_mb_bump; | ||
945 | /* where last allocation was done - for stream allocation */ | 946 | /* where last allocation was done - for stream allocation */ |
946 | unsigned long s_mb_last_group; | 947 | unsigned long s_mb_last_group; |
947 | unsigned long s_mb_last_start; | 948 | unsigned long s_mb_last_start; |