advfs: Convert FTX_EQ from a macro to a static inline function