Return required num of blocks to xip file read/write.
copy_to_cache refine step 1