Re: [PATCH 06/17] xfs_scrub: call bulkstat directly if we're only scanning user files

Christoph Hellwig
2025-02-07T04:37:46Z

> +/* Iterate all the user files returned by a bulkstat. */
> +static void
> +scan_user_files(
> + struct workqueue *wq,
> + xfs_agnumber_t agno,
> + void *arg)
> +{
> + struct xfs_handle handle;
> + struct scrub_ctx *ctx = (struct scrub_ctx *)wq->wq_ctx;

No need for the cast - wq_ctx is a void pointer.