nfs3proc.c (d141d97437a3c84aa18cfd5c8d91b89c4173f25c) nfs3proc.c (56e4ebf877b6043c289bda32a5a7385b80c17dee)
1/*
2 * linux/fs/nfs/nfs3proc.c
3 *
4 * Client-side NFSv3 procedures stubs.
5 *
6 * Copyright (C) 1997, Olaf Kirch
7 */
8

--- 616 unchanged lines hidden (view full) ---

625 * The decode function itself doesn't perform any decoding, it just makes
626 * sure the reply is syntactically correct.
627 *
628 * Also note that this implementation handles both plain readdir and
629 * readdirplus.
630 */
631static int
632nfs3_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
1/*
2 * linux/fs/nfs/nfs3proc.c
3 *
4 * Client-side NFSv3 procedures stubs.
5 *
6 * Copyright (C) 1997, Olaf Kirch
7 */
8

--- 616 unchanged lines hidden (view full) ---

625 * The decode function itself doesn't perform any decoding, it just makes
626 * sure the reply is syntactically correct.
627 *
628 * Also note that this implementation handles both plain readdir and
629 * readdirplus.
630 */
631static int
632nfs3_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
633 u64 cookie, struct page *page, unsigned int count, int plus)
633 u64 cookie, struct page **pages, unsigned int count, int plus)
634{
635 struct inode *dir = dentry->d_inode;
636 __be32 *verf = NFS_COOKIEVERF(dir);
637 struct nfs3_readdirargs arg = {
638 .fh = NFS_FH(dir),
639 .cookie = cookie,
640 .verf = {verf[0], verf[1]},
641 .plus = plus,
642 .count = count,
634{
635 struct inode *dir = dentry->d_inode;
636 __be32 *verf = NFS_COOKIEVERF(dir);
637 struct nfs3_readdirargs arg = {
638 .fh = NFS_FH(dir),
639 .cookie = cookie,
640 .verf = {verf[0], verf[1]},
641 .plus = plus,
642 .count = count,
643 .pages = &page
643 .pages = pages
644 };
645 struct nfs3_readdirres res = {
646 .verf = verf,
647 .plus = plus
648 };
649 struct rpc_message msg = {
650 .rpc_proc = &nfs3_procedures[NFS3PROC_READDIR],
651 .rpc_argp = &arg,

--- 237 unchanged lines hidden ---
644 };
645 struct nfs3_readdirres res = {
646 .verf = verf,
647 .plus = plus
648 };
649 struct rpc_message msg = {
650 .rpc_proc = &nfs3_procedures[NFS3PROC_READDIR],
651 .rpc_argp = &arg,

--- 237 unchanged lines hidden ---