×

Technique for accelerating file deletion by preloading indirect blocks

  • US 7,509,329 B1
  • Filed: 06/01/2004
  • Issued: 03/24/2009
  • Est. Priority Date: 06/01/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method for accelerating file deletion of a file served by a storage system, comprising:

  • invoking a file deletion operation to delete a selected file;

    reading, in response to the file deletion operation, a high-level indirect block of a buffer tree of the selected file to locate one or more low-level indirect blocks referenced by the high-level indirect block;

    issuing read requests, in response to locating the one or more low-level indirect blocks, for the one or more low-level indirect blocks;

    processing a first low-level indirect block of the one or more low-level indirect blocks in parallel with executing the read requests;

    preloading into a buffer cache memory a number of one or more low-level indirect blocks that were read while the first low-level block is being processed, wherein the number, of the one or more low-level indirect blocks to be preloaded, chosen to ensure that the one or more low-level indirect blocks do not overflow the buffer cache memory; and

    freeing data blocks referenced by pointers of the first low-level indirect block in response to the file deletion operation to delete the data blocks.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×