 When the flash-memory block has all its file-system blocks moved or deleted, it can be erased and used for new data.For peak usage of the flash-memory drive, it is necessary to compact data so that flash-memory blocks are full of useful data.This is accomplished by garbage collection.