proc.c (d3d4152a5d59af9e13a73efa9e9c24383fbe307f) | proc.c (56e4ebf877b6043c289bda32a5a7385b80c17dee) |
---|---|
1/* 2 * linux/fs/nfs/proc.c 3 * 4 * Copyright (C) 1992, 1993, 1994 Rick Sladkey 5 * 6 * OS-independent nfs remote procedure call functions 7 * 8 * Tuned by Alan Cox <A.Cox@swansea.ac.uk> for >3K buffers --- 520 unchanged lines hidden (view full) --- 529 * The READDIR implementation is somewhat hackish - we pass a temporary 530 * buffer to the encode function, which installs it in the receive 531 * the receive iovec. The decode function just parses the reply to make 532 * sure it is syntactically correct; the entries itself are decoded 533 * from nfs_readdir by calling the decode_entry function directly. 534 */ 535static int 536nfs_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, | 1/* 2 * linux/fs/nfs/proc.c 3 * 4 * Copyright (C) 1992, 1993, 1994 Rick Sladkey 5 * 6 * OS-independent nfs remote procedure call functions 7 * 8 * Tuned by Alan Cox <A.Cox@swansea.ac.uk> for >3K buffers --- 520 unchanged lines hidden (view full) --- 529 * The READDIR implementation is somewhat hackish - we pass a temporary 530 * buffer to the encode function, which installs it in the receive 531 * the receive iovec. The decode function just parses the reply to make 532 * sure it is syntactically correct; the entries itself are decoded 533 * from nfs_readdir by calling the decode_entry function directly. 534 */ 535static int 536nfs_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, |
537 u64 cookie, struct page *page, unsigned int count, int plus) | 537 u64 cookie, struct page **pages, unsigned int count, int plus) |
538{ 539 struct inode *dir = dentry->d_inode; 540 struct nfs_readdirargs arg = { 541 .fh = NFS_FH(dir), 542 .cookie = cookie, 543 .count = count, | 538{ 539 struct inode *dir = dentry->d_inode; 540 struct nfs_readdirargs arg = { 541 .fh = NFS_FH(dir), 542 .cookie = cookie, 543 .count = count, |
544 .pages = &page, | 544 .pages = pages, |
545 }; 546 struct rpc_message msg = { 547 .rpc_proc = &nfs_procedures[NFSPROC_READDIR], 548 .rpc_argp = &arg, 549 .rpc_cred = cred, 550 }; 551 int status; 552 --- 191 unchanged lines hidden --- | 545 }; 546 struct rpc_message msg = { 547 .rpc_proc = &nfs_procedures[NFSPROC_READDIR], 548 .rpc_argp = &arg, 549 .rpc_cred = cred, 550 }; 551 int status; 552 --- 191 unchanged lines hidden --- |