[PATCH 3/6] xfs: convert ENOSPC inode flushing to use new syncd workqueue

Christoph Hellwig hch at infradead.org
Thu Mar 10 11:35:49 CST 2011


Looks good,

Reviewed-by: Christoph Hellwig <hch at lst.de>

> +STATIC void
> +xfs_flush_worker(
> +	struct work_struct *work)
> +{
> +	struct xfs_mount *mp = container_of(work,
> +					struct xfs_mount, m_flush_work);
> +
> +	xfs_sync_data(mp, SYNC_TRYLOCK);
> +	xfs_sync_data(mp, SYNC_TRYLOCK | SYNC_WAIT);
> +	xfs_log_force(mp, XFS_LOG_SYNC);

No actually new in this patch: but what's the point of the log force
here?  xfs_sync_data just did one before returning.




More information about the xfs mailing list