diff options
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.c | 8 | ||||
| -rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c index 7ec89fc05b2b..aecf2519db76 100644 --- 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( | |||
| 1268 | if (!page_has_buffers(page)) | 1268 | if (!page_has_buffers(page)) |
| 1269 | create_empty_buffers(page, 1 << inode->i_blkbits, 0); | 1269 | create_empty_buffers(page, 1 << inode->i_blkbits, 0); |
| 1270 | 1270 | ||
| 1271 | |||
| 1272 | /* | ||
| 1273 | * VM calculation for nr_to_write seems off. Bump it way | ||
| 1274 | * up, this gets simple streaming writes zippy again. | ||
| 1275 | * To be reviewed again after Jens' writeback changes. | ||
| 1276 | */ | ||
| 1277 | wbc->nr_to_write *= 4; | ||
| 1278 | |||
| 1271 | /* | 1279 | /* |
| 1272 | * Convert delayed allocate, unwritten or unmapped space | 1280 | * Convert delayed allocate, unwritten or unmapped space |
| 1273 | * to real space and flush out to disk. | 1281 | * to real space and flush out to disk. |
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 58973bb46038..8070b34cc287 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
| @@ -680,8 +680,8 @@ xfs_vn_fiemap( | |||
| 680 | else | 680 | else |
| 681 | bm.bmv_length = BTOBB(length); | 681 | bm.bmv_length = BTOBB(length); |
| 682 | 682 | ||
| 683 | /* our formatter will tell xfs_getbmap when to stop. */ | 683 | /* We add one because in getbmap world count includes the header */ |
| 684 | bm.bmv_count = MAXEXTNUM; | 684 | bm.bmv_count = fieinfo->fi_extents_max + 1; |
| 685 | bm.bmv_iflags = BMV_IF_PREALLOC; | 685 | bm.bmv_iflags = BMV_IF_PREALLOC; |
| 686 | if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) | 686 | if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR) |
| 687 | bm.bmv_iflags |= BMV_IF_ATTRFORK; | 687 | bm.bmv_iflags |= BMV_IF_ATTRFORK; |
