[XFS] replace some large xfs_log_priv.h macros by proper functions