Skip to content

Commit d1bacf9

Browse files
Bryan SchumakerTrond Myklebust
authored andcommitted
NFS: add readdir cache array
This patch adds the readdir cache array and functions to retreive the array stored on a cache page, clear the array by freeing allocated memory, add an entry to the array, and search the array for a given cookie. It then modifies readdir to make use of the new cache array. With the new cache array method, we no longer need some of this code. Finally, nfs_llseek_dir() will set file->f_pos to a value greater than 0 and desc->dir_cookie to zero. When we see this, readdir needs to find the file at position file->f_pos from the start of the directory. Signed-off-by: Bryan Schumaker <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent 8c7597f commit d1bacf9

File tree

1 file changed

+309
-323
lines changed

1 file changed

+309
-323
lines changed

0 commit comments

Comments
 (0)