nfs4proc.c (168667c43bbafff11b46014a1e94477ff7619f45) nfs4proc.c (56e4ebf877b6043c289bda32a5a7385b80c17dee)
1/*
2 * fs/nfs/nfs4proc.c
3 *
4 * Client-side procedure declarations for NFSv4.
5 *
6 * Copyright (c) 2002 The Regents of the University of Michigan.
7 * All rights reserved.
8 *

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

2818 err = nfs4_handle_exception(NFS_SERVER(dir),
2819 _nfs4_proc_mkdir(dir, dentry, sattr),
2820 &exception);
2821 } while (exception.retry);
2822 return err;
2823}
2824
2825static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
1/*
2 * fs/nfs/nfs4proc.c
3 *
4 * Client-side procedure declarations for NFSv4.
5 *
6 * Copyright (c) 2002 The Regents of the University of Michigan.
7 * All rights reserved.
8 *

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

2818 err = nfs4_handle_exception(NFS_SERVER(dir),
2819 _nfs4_proc_mkdir(dir, dentry, sattr),
2820 &exception);
2821 } while (exception.retry);
2822 return err;
2823}
2824
2825static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
2826 u64 cookie, struct page *page, unsigned int count, int plus)
2826 u64 cookie, struct page **pages, unsigned int count, int plus)
2827{
2828 struct inode *dir = dentry->d_inode;
2829 struct nfs4_readdir_arg args = {
2830 .fh = NFS_FH(dir),
2827{
2828 struct inode *dir = dentry->d_inode;
2829 struct nfs4_readdir_arg args = {
2830 .fh = NFS_FH(dir),
2831 .pages = &page,
2831 .pages = pages,
2832 .pgbase = 0,
2833 .count = count,
2834 .bitmask = NFS_SERVER(dentry->d_inode)->attr_bitmask,
2835 };
2836 struct nfs4_readdir_res res;
2837 struct rpc_message msg = {
2838 .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_READDIR],
2839 .rpc_argp = &args,

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

2854
2855 nfs_invalidate_atime(dir);
2856
2857 dprintk("%s: returns %d\n", __func__, status);
2858 return status;
2859}
2860
2861static int nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
2832 .pgbase = 0,
2833 .count = count,
2834 .bitmask = NFS_SERVER(dentry->d_inode)->attr_bitmask,
2835 };
2836 struct nfs4_readdir_res res;
2837 struct rpc_message msg = {
2838 .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_READDIR],
2839 .rpc_argp = &args,

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

2854
2855 nfs_invalidate_atime(dir);
2856
2857 dprintk("%s: returns %d\n", __func__, status);
2858 return status;
2859}
2860
2861static int nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,
2862 u64 cookie, struct page *page, unsigned int count, int plus)
2862 u64 cookie, struct page **pages, unsigned int count, int plus)
2863{
2864 struct nfs4_exception exception = { };
2865 int err;
2866 do {
2867 err = nfs4_handle_exception(NFS_SERVER(dentry->d_inode),
2868 _nfs4_proc_readdir(dentry, cred, cookie,
2863{
2864 struct nfs4_exception exception = { };
2865 int err;
2866 do {
2867 err = nfs4_handle_exception(NFS_SERVER(dentry->d_inode),
2868 _nfs4_proc_readdir(dentry, cred, cookie,
2869 page, count, plus),
2869 pages, count, plus),
2870 &exception);
2871 } while (exception.retry);
2872 return err;
2873}
2874
2875static int _nfs4_proc_mknod(struct inode *dir, struct dentry *dentry,
2876 struct iattr *sattr, dev_t rdev)
2877{

--- 2519 unchanged lines hidden ---
2870 &exception);
2871 } while (exception.retry);
2872 return err;
2873}
2874
2875static int _nfs4_proc_mknod(struct inode *dir, struct dentry *dentry,
2876 struct iattr *sattr, dev_t rdev)
2877{

--- 2519 unchanged lines hidden ---