aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/rpc_pipe.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2009-08-09 15:14:22 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-08-09 15:14:22 -0400
commit458adb8ba9b26bfc66593866013adbb62a1a3d2e (patch)
treeb24eec8ef6f161dbcc564c8f847b476bda9fcb00 /net/sunrpc/rpc_pipe.c
parentbb1567491e43df4113ec8b088ff0ebc22f568bc5 (diff)
SUNRPC: Rename rpc_mkdir to rpc_create_client_dir()
This reflects the fact that rpc_mkdir() as it stands today, can only create a RPC client type directory. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/rpc_pipe.c')
-rw-r--r--net/sunrpc/rpc_pipe.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 2a4e6eb0a3e9..08580bedc25f 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -755,7 +755,7 @@ out_bad:
755} 755}
756 756
757/** 757/**
758 * rpc_mkdir - Create a new directory in rpc_pipefs 758 * rpc_create_client_dir - Create a new rpc_client directory in rpc_pipefs
759 * @path: path from the rpc_pipefs root to the new directory 759 * @path: path from the rpc_pipefs root to the new directory
760 * @rpc_client: rpc client to associate with this directory 760 * @rpc_client: rpc client to associate with this directory
761 * 761 *
@@ -764,8 +764,8 @@ out_bad:
764 * information about the client, together with any "pipes" that may 764 * information about the client, together with any "pipes" that may
765 * later be created using rpc_mkpipe(). 765 * later be created using rpc_mkpipe().
766 */ 766 */
767struct dentry * 767struct dentry *rpc_create_client_dir(const char *path,
768rpc_mkdir(char *path, struct rpc_clnt *rpc_client) 768 struct rpc_clnt *rpc_client)
769{ 769{
770 struct nameidata nd; 770 struct nameidata nd;
771 struct dentry *dentry; 771 struct dentry *dentry;
@@ -797,11 +797,10 @@ out_err:
797} 797}
798 798
799/** 799/**
800 * rpc_rmdir - Remove a directory created with rpc_mkdir() 800 * rpc_remove_client_dir - Remove a directory created with rpc_create_client_dir()
801 * @dentry: directory to remove 801 * @dentry: directory to remove
802 */ 802 */
803int 803int rpc_remove_client_dir(struct dentry *dentry)
804rpc_rmdir(struct dentry *dentry)
805{ 804{
806 struct dentry *parent; 805 struct dentry *parent;
807 struct inode *dir; 806 struct inode *dir;