Patent ID: 8719488

Claim:
A method, comprising: receiving a request to access a first block stored in a storage device, the storage device having one or more magnetic storage media and the one or more magnetic storage media storing blocks addressable by block addresses; determining whether the first block is cached in a caching device, the caching device having a flash memory configured to cache data stored in the storage device and the flash memory organized as blocks addressable by physical addresses which correspond to respective physical locations on the flash memory; and if the first block is cached in the caching device, (i) translating a block address of the storage device at which the first block is stored into a physical address of the flash memory at which the first block is cached using a direct mapping from respective block addresses of the storage device to respective physical addresses of the flash memory and (ii) providing access to the first block cached in the caching device; otherwise, providing access to the first block stored in the storage device.