xfs: make inode quota check more general