[PATCH] Split out the memory handling from fio.c