static void remove_map(mfu_flist list, uint64_t* rmcount) { /* remap files based on parent directory */ mfu_flist newlist = mfu_flist_remap(list, map_name, NULL); /* at this point, we can directly remove files in our list */ remove_direct(newlist, rmcount); /* free list of remapped files */ mfu_flist_free(&newlist); return; }
/* This takes in a list, spreads it out evenly, and then returns the newly created * list to the caller */ mfu_flist mfu_flist_spread(mfu_flist flist) { /* remap files to evenly distribute items to processes */ mfu_flist newlist = mfu_flist_remap(flist, map_spread, NULL); return newlist; }