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