diff options
Diffstat (limited to 'fs/nfs/proc.c')
| -rw-r--r-- | fs/nfs/proc.c | 54 | 
1 files changed, 10 insertions, 44 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index a8f57c728df..c171ce1a8a3 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c @@ -235,7 +235,7 @@ nfs_proc_create(struct inode *dir, struct dentry *dentry, struct iattr *sattr,  	};  	int status = -ENOMEM; -	dprintk("NFS call  create %s\n", dentry->d_name.name); +	dprintk("NFS call  create %pd\n", dentry);  	data = nfs_alloc_createdata(dir, dentry, sattr);  	if (data == NULL)  		goto out; @@ -265,7 +265,7 @@ nfs_proc_mknod(struct inode *dir, struct dentry *dentry, struct iattr *sattr,  	umode_t mode;  	int status = -ENOMEM; -	dprintk("NFS call  mknod %s\n", dentry->d_name.name); +	dprintk("NFS call  mknod %pd\n", dentry);  	mode = sattr->ia_mode;  	if (S_ISFIFO(mode)) { @@ -357,30 +357,6 @@ nfs_proc_rename_done(struct rpc_task *task, struct inode *old_dir,  }  static int -nfs_proc_rename(struct inode *old_dir, struct qstr *old_name, -		struct inode *new_dir, struct qstr *new_name) -{ -	struct nfs_renameargs	arg = { -		.old_dir	= NFS_FH(old_dir), -		.old_name	= old_name, -		.new_dir	= NFS_FH(new_dir), -		.new_name	= new_name, -	}; -	struct rpc_message msg = { -		.rpc_proc	= &nfs_procedures[NFSPROC_RENAME], -		.rpc_argp	= &arg, -	}; -	int			status; - -	dprintk("NFS call  rename %s -> %s\n", old_name->name, new_name->name); -	status = rpc_call_sync(NFS_CLIENT(old_dir), &msg, 0); -	nfs_mark_for_revalidate(old_dir); -	nfs_mark_for_revalidate(new_dir); -	dprintk("NFS reply rename: %d\n", status); -	return status; -} - -static int  nfs_proc_link(struct inode *inode, struct inode *dir, struct qstr *name)  {  	struct nfs_linkargs	arg = { @@ -423,7 +399,7 @@ nfs_proc_symlink(struct inode *dir, struct dentry *dentry, struct page *page,  	};  	int status = -ENAMETOOLONG; -	dprintk("NFS call  symlink %s\n", dentry->d_name.name); +	dprintk("NFS call  symlink %pd\n", dentry);  	if (len > NFS2_MAXPATHLEN)  		goto out; @@ -462,7 +438,7 @@ nfs_proc_mkdir(struct inode *dir, struct dentry *dentry, struct iattr *sattr)  	};  	int status = -ENOMEM; -	dprintk("NFS call  mkdir %s\n", dentry->d_name.name); +	dprintk("NFS call  mkdir %pd\n", dentry);  	data = nfs_alloc_createdata(dir, dentry, sattr);  	if (data == NULL)  		goto out; @@ -602,7 +578,7 @@ nfs_proc_pathconf(struct nfs_server *server, struct nfs_fh *fhandle,  	return 0;  } -static int nfs_read_done(struct rpc_task *task, struct nfs_read_data *data) +static int nfs_read_done(struct rpc_task *task, struct nfs_pgio_data *data)  {  	struct inode *inode = data->header->inode; @@ -618,18 +594,18 @@ static int nfs_read_done(struct rpc_task *task, struct nfs_read_data *data)  	return 0;  } -static void nfs_proc_read_setup(struct nfs_read_data *data, struct rpc_message *msg) +static void nfs_proc_read_setup(struct nfs_pgio_data *data, struct rpc_message *msg)  {  	msg->rpc_proc = &nfs_procedures[NFSPROC_READ];  } -static int nfs_proc_read_rpc_prepare(struct rpc_task *task, struct nfs_read_data *data) +static int nfs_proc_pgio_rpc_prepare(struct rpc_task *task, struct nfs_pgio_data *data)  {  	rpc_call_start(task);  	return 0;  } -static int nfs_write_done(struct rpc_task *task, struct nfs_write_data *data) +static int nfs_write_done(struct rpc_task *task, struct nfs_pgio_data *data)  {  	struct inode *inode = data->header->inode; @@ -638,19 +614,13 @@ static int nfs_write_done(struct rpc_task *task, struct nfs_write_data *data)  	return 0;  } -static void nfs_proc_write_setup(struct nfs_write_data *data, struct rpc_message *msg) +static void nfs_proc_write_setup(struct nfs_pgio_data *data, struct rpc_message *msg)  {  	/* Note: NFSv2 ignores @stable and always uses NFS_FILE_SYNC */  	data->args.stable = NFS_FILE_SYNC;  	msg->rpc_proc = &nfs_procedures[NFSPROC_WRITE];  } -static int nfs_proc_write_rpc_prepare(struct rpc_task *task, struct nfs_write_data *data) -{ -	rpc_call_start(task); -	return 0; -} -  static void nfs_proc_commit_rpc_prepare(struct rpc_task *task, struct nfs_commit_data *data)  {  	BUG(); @@ -745,7 +715,6 @@ const struct nfs_rpc_ops nfs_v2_clientops = {  	.unlink_setup	= nfs_proc_unlink_setup,  	.unlink_rpc_prepare = nfs_proc_unlink_rpc_prepare,  	.unlink_done	= nfs_proc_unlink_done, -	.rename		= nfs_proc_rename,  	.rename_setup	= nfs_proc_rename_setup,  	.rename_rpc_prepare = nfs_proc_rename_rpc_prepare,  	.rename_done	= nfs_proc_rename_done, @@ -759,13 +728,10 @@ const struct nfs_rpc_ops nfs_v2_clientops = {  	.fsinfo		= nfs_proc_fsinfo,  	.pathconf	= nfs_proc_pathconf,  	.decode_dirent	= nfs2_decode_dirent, +	.pgio_rpc_prepare = nfs_proc_pgio_rpc_prepare,  	.read_setup	= nfs_proc_read_setup, -	.read_pageio_init = nfs_pageio_init_read, -	.read_rpc_prepare = nfs_proc_read_rpc_prepare,  	.read_done	= nfs_read_done,  	.write_setup	= nfs_proc_write_setup, -	.write_pageio_init = nfs_pageio_init_write, -	.write_rpc_prepare = nfs_proc_write_rpc_prepare,  	.write_done	= nfs_write_done,  	.commit_setup	= nfs_proc_commit_setup,  	.commit_rpc_prepare = nfs_proc_commit_rpc_prepare,  | 
