summaryrefslogtreecommitdiffstats
path: root/fs/nfs/proc.c
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2010-10-20 15:44:37 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-10-23 15:27:35 -0400
commit56e4ebf877b6043c289bda32a5a7385b80c17dee (patch)
tree160ae8d5b5ee3871d02a9f5283187430c9ec5ffe /fs/nfs/proc.c
parentafa8ccc978c24d8ab22e3b3b8cbd1054c84c070b (diff)
downloadlinux-56e4ebf877b6043c289bda32a5a7385b80c17dee.tar.gz
linux-56e4ebf877b6043c289bda32a5a7385b80c17dee.tar.bz2
linux-56e4ebf877b6043c289bda32a5a7385b80c17dee.zip
NFS: readdir with vmapped pages
We can use vmapped pages to read more information from the network at once. This will reduce the number of calls needed to complete a readdir. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> [trondmy: Added #include for linux/vmalloc.h> in fs/nfs/dir.c] Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/proc.c')
-rw-r--r--fs/nfs/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c
index e5e84aa2af17..58e7f84fc1fd 100644
--- a/fs/nfs/proc.c
+++ b/fs/nfs/proc.c
@@ -534,14 +534,14 @@ nfs_proc_rmdir(struct inode *dir, struct qstr *name)
*/
static int
nfs_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
- u64 cookie, struct page *page, unsigned int count, int plus)
+ u64 cookie, struct page **pages, unsigned int count, int plus)
{
struct inode *dir = dentry->d_inode;
struct nfs_readdirargs arg = {
.fh = NFS_FH(dir),
.cookie = cookie,
.count = count,
- .pages = &page,
+ .pages = pages,
};
struct rpc_message msg = {
.rpc_proc = &nfs_procedures[NFSPROC_READDIR],