From: Bryan Schumaker Date: Fri, 24 Sep 2010 18:48:42 +0000 (-0400) Subject: NFS: add readdir cache array X-Git-Tag: v2.6.37-rc1~120^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1bacf9eb2fd0e7ef870acf84b9e3b157dcfa7dc;p=pandora-kernel.git 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 Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed