mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
xfs: bump up nr_to_write in xfs_vm_writepage
VM calculation for nr_to_write seems off. Bump it way up, this gets simple streaming writes zippy again. To be reviewed again after Jens' writeback changes. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Eric Sandeen <[email protected]> Cc: Chris Mason <[email protected]> Reviewed-by: Felix Blyakher <[email protected]> Signed-off-by: Felix Blyakher <[email protected]>
This commit is contained in:
parent
97db39a1f6
commit
c8a4051c37
1 changed files with 8 additions and 0 deletions
|
|
@ -1268,6 +1268,14 @@ xfs_vm_writepage(
|
|||
if (!page_has_buffers(page))
|
||||
create_empty_buffers(page, 1 << inode->i_blkbits, 0);
|
||||
|
||||
|
||||
/*
|
||||
* VM calculation for nr_to_write seems off. Bump it way
|
||||
* up, this gets simple streaming writes zippy again.
|
||||
* To be reviewed again after Jens' writeback changes.
|
||||
*/
|
||||
wbc->nr_to_write *= 4;
|
||||
|
||||
/*
|
||||
* Convert delayed allocate, unwritten or unmapped space
|
||||
* to real space and flush out to disk.
|
||||
|
|
|
|||
Loading…
Reference in a new issue