use enum type(zfetch_dirn_t) instead

Fix code with zfetch_dirn_t, which is more readable and clear.