aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2014-03-17 07:06:55 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-03-17 15:14:16 -0400
commit0e862a405185b28e775eeeae6b04bfa39724b1ad (patch)
tree90f7f61544cb5265c95546139bf32b5383df0dd5
parent96f9d8c0740264c5e2975361389ff2c21f2c5a4d (diff)
nfs: make nfs_async_rename non-static
...and move the prototype for nfs_sillyrename to internal.h. Signed-off-by: Jeff Layton <jlayton@redhat.com> Tested-by: Anna Schumaker <Anna.Schumaker@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
-rw-r--r--fs/nfs/internal.h7
-rw-r--r--fs/nfs/unlink.c2
-rw-r--r--include/linux/nfs_fs.h1
3 files changed, 8 insertions, 2 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 7f7c476d0c2c..2a81cdb93ec0 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -474,6 +474,13 @@ extern int nfs_migrate_page(struct address_space *,
474#define nfs_migrate_page NULL 474#define nfs_migrate_page NULL
475#endif 475#endif
476 476
477/* unlink.c */
478extern struct rpc_task *
479nfs_async_rename(struct inode *old_dir, struct inode *new_dir,
480 struct dentry *old_dentry, struct dentry *new_dentry,
481 void (*complete)(struct rpc_task *, struct nfs_renamedata *));
482extern int nfs_sillyrename(struct inode *dir, struct dentry *dentry);
483
477/* direct.c */ 484/* direct.c */
478void nfs_init_cinfo_from_dreq(struct nfs_commit_info *cinfo, 485void nfs_init_cinfo_from_dreq(struct nfs_commit_info *cinfo,
479 struct nfs_direct_req *dreq); 486 struct nfs_direct_req *dreq);
diff --git a/fs/nfs/unlink.c b/fs/nfs/unlink.c
index 3e6798c9ba1f..818ded7b7b74 100644
--- a/fs/nfs/unlink.c
+++ b/fs/nfs/unlink.c
@@ -399,7 +399,7 @@ static const struct rpc_call_ops nfs_rename_ops = {
399 * 399 *
400 * It's expected that valid references to the dentries and inodes are held 400 * It's expected that valid references to the dentries and inodes are held
401 */ 401 */
402static struct rpc_task * 402struct rpc_task *
403nfs_async_rename(struct inode *old_dir, struct inode *new_dir, 403nfs_async_rename(struct inode *old_dir, struct inode *new_dir,
404 struct dentry *old_dentry, struct dentry *new_dentry, 404 struct dentry *old_dentry, struct dentry *new_dentry,
405 void (*complete)(struct rpc_task *, struct nfs_renamedata *)) 405 void (*complete)(struct rpc_task *, struct nfs_renamedata *))
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index f55a90bed0b4..fa6918b0f829 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -511,7 +511,6 @@ extern void nfs_complete_unlink(struct dentry *dentry, struct inode *);
511extern void nfs_wait_on_sillyrename(struct dentry *dentry); 511extern void nfs_wait_on_sillyrename(struct dentry *dentry);
512extern void nfs_block_sillyrename(struct dentry *dentry); 512extern void nfs_block_sillyrename(struct dentry *dentry);
513extern void nfs_unblock_sillyrename(struct dentry *dentry); 513extern void nfs_unblock_sillyrename(struct dentry *dentry);
514extern int nfs_sillyrename(struct inode *dir, struct dentry *dentry);
515 514
516/* 515/*
517 * linux/fs/nfs/write.c 516 * linux/fs/nfs/write.c