diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_aops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 7ec89fc05b2b..d5e5559e31db 100644 --- a/fs/xfs/linux-2.6/xfs_aops.c +++ b/fs/xfs/linux-2.6/xfs_aops.c | |||
@@ -216,7 +216,6 @@ xfs_setfilesize( | |||
216 | if (ip->i_d.di_size < isize) { | 216 | if (ip->i_d.di_size < isize) { |
217 | ip->i_d.di_size = isize; | 217 | ip->i_d.di_size = isize; |
218 | ip->i_update_core = 1; | 218 | ip->i_update_core = 1; |
219 | ip->i_update_size = 1; | ||
220 | xfs_mark_inode_dirty_sync(ip); | 219 | xfs_mark_inode_dirty_sync(ip); |
221 | } | 220 | } |
222 | 221 | ||
@@ -1268,6 +1267,14 @@ xfs_vm_writepage( | |||
1268 | if (!page_has_buffers(page)) | 1267 | if (!page_has_buffers(page)) |
1269 | create_empty_buffers(page, 1 << inode->i_blkbits, 0); | 1268 | create_empty_buffers(page, 1 << inode->i_blkbits, 0); |
1270 | 1269 | ||
1270 | |||
1271 | /* | ||
1272 | * VM calculation for nr_to_write seems off. Bump it way | ||
1273 | * up, this gets simple streaming writes zippy again. | ||
1274 | * To be reviewed again after Jens' writeback changes. | ||
1275 | */ | ||
1276 | wbc->nr_to_write *= 4; | ||
1277 | |||
1271 | /* | 1278 | /* |
1272 | * Convert delayed allocate, unwritten or unmapped space | 1279 | * Convert delayed allocate, unwritten or unmapped space |
1273 | * to real space and flush out to disk. | 1280 | * to real space and flush out to disk. |