projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97db39a
)
xfs: bump up nr_to_write in xfs_vm_writepage
author
Eric Sandeen
<
[email protected]
>
Fri, 31 Jul 2009 05:02:17 +0000
(
00:02
-0500)
committer
Felix Blyakher
<
[email protected]
>
Fri, 31 Jul 2009 05:57:11 +0000
(
00:57
-0500)
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]
>
fs/xfs/linux-2.6/xfs_aops.c
patch
|
blob
|
history
diff --git
a/fs/xfs/linux-2.6/xfs_aops.c
b/fs/xfs/linux-2.6/xfs_aops.c
index 7ec89fc05b2b66d9ed5ca462d2d7f05d44c83dbc..aecf2519db76345a206fb812c61f0598d85440fb 100644
(file)
--- a/
fs/xfs/linux-2.6/xfs_aops.c
+++ b/
fs/xfs/linux-2.6/xfs_aops.c
@@
-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.