[PATCH openEuler-5.10 17/28] xfs: rework xlog_state_do_callback()