摘要 |
A method for managing a cache buffer and a disk drive using the same are provided to determine priority for changing an internal memory block of the cache buffer based on a folder layer level of a file system applied to the disk drive. A disk(12) stores data, and the cache buffer(230) temporarily stores the data read from the disk and temporarily stores the data written to the disk. A controller(240) determines the priority for replacing file data in prior to folder data and changing the folder data of a lower level than the top level among the folder data if a condition for changing the data stored in the cache buffer is generated. The controller makes the data stored in the cache buffer replaced according to the determined priority. The priority is determined by applying an LRU(Least Recently Used) algorithm among the file data or the folder data of the same level.
|