···12681268 if (!page_has_buffers(page))12691269 create_empty_buffers(page, 1 << inode->i_blkbits, 0);1270127012711271+12721272+ /*12731273+ * VM calculation for nr_to_write seems off. Bump it way12741274+ * up, this gets simple streaming writes zippy again.12751275+ * To be reviewed again after Jens' writeback changes.12761276+ */12771277+ wbc->nr_to_write *= 4;12781278+12711279 /*12721280 * Convert delayed allocate, unwritten or unmapped space12731281 * to real space and flush out to disk.
+2-2
fs/xfs/linux-2.6/xfs_iops.c
···680680 else681681 bm.bmv_length = BTOBB(length);682682683683- /* our formatter will tell xfs_getbmap when to stop. */684684- bm.bmv_count = MAXEXTNUM;683683+ /* We add one because in getbmap world count includes the header */684684+ bm.bmv_count = fieinfo->fi_extents_max + 1;685685 bm.bmv_iflags = BMV_IF_PREALLOC;686686 if (fieinfo->fi_flags & FIEMAP_FLAG_XATTR)687687 bm.bmv_iflags |= BMV_IF_ATTRFORK;