[XFS] Use is_power_of_2 instead of open coding checks