]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NFS: add readdir cache array
authorBryan Schumaker <bjschuma@netapp.com>
Fri, 24 Sep 2010 18:48:42 +0000 (14:48 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 23 Oct 2010 19:27:30 +0000 (15:27 -0400)
commitd1bacf9eb2fd0e7ef870acf84b9e3b157dcfa7dc
tree8b6746ade07c71f0d40c29b76dbe65e999c038f7
parent8c7597f6ce212bbc8ca05090e21820ffe9792b3d
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 <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c