[PATCH openEuler-5.10-LTS 10/18] quota: Replace all block number checking with helper function