[PATCH 2/3] xfs: simplify xfs_vm_releasepage

Dave Chinner david at fromorbit.com
Mon Jun 14 20:37:37 CDT 2010


On Fri, Jun 11, 2010 at 12:13:14PM -0400, Christoph Hellwig wrote:
> Currently the xfs releasepage implementation has code to deal with converting
> delayed allocated and unwritten space.  But we never get called for those as
> we always convert delayed and unwritten space when cleaning a page, or drop
> the state from the buffers in block_invalidatepage.  We still keep a WARN_ON
> on those cases for now, but remove all the case dealing with it, which allows
> to fold xfs_page_state_convert into xfs_vm_writepage and remove the !startio
> case from the whole writeback path.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>

Looks good. Couple of things:

> +
> +	/*
> +	 * 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;
> +

That's gone in mainline as of as of .35-rc3. We need to get the
xfs-dev tree updated.

Otherwise, conѕider it:

Reviewed-by: Dave Chinner <dchinner at redhat.com>

Cheers,

Dave.
-- 
Dave Chinner
david at fromorbit.com




More information about the xfs mailing list