xfs: check if device support discard in xfs_ioc_trim()