use enum type(zfetch_dirn_t) instead

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