[XFS] convert xfs to use ERR_CAST