[PATCH 4/9] xfs: introduce background inode reclaim work

Christoph Hellwig hch at infradead.org
Wed Apr 6 13:14:26 CDT 2011


> + * We can have inodes enter reclaim after we've shut down the syncd workqueue
> + * during unmount, so don't allow reclaim work to be queued during unmount.

Nipick: this part of the comment would be better just above the
MS_ACTIVE check.  I just tried to figure out what it was for, and it
took me a while to realize the explanation was in the block comment
above the function.

> +static void
> +xfs_syncd_queue_reclaim(
> +	struct xfs_mount        *mp)
> +{
> +	if (!(mp->m_super->s_flags & MS_ACTIVE))
> +		return;

Otherwise looks good.




More information about the xfs mailing list