[PATCH 06/11] xfs: don't leave EFIs on AIL on mount failure

Christoph Hellwig hch at infradead.org
Sun Aug 9 03:01:50 CDT 2015


>  STATIC int
>  xlog_recover_process_efis(
> -	struct xlog	*log)
> +	struct xlog		*log,
> +	bool			cancel)

There is almost no code shared between cancelation and processing,
so please add a new xlog_cancel_efis helper instead.

> +		efip = (struct xfs_efi_log_item *) lip;

Please use container_of to get to a containing structure.



More information about the xfs mailing list