xfs: get rid of open-coded S_ISREG(), etc.