aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/idmap.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2005-09-23 11:08:25 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-09-23 12:39:00 -0400
commitf134585a7343d71f9be7f0cf97e2145f21dd10c6 (patch)
treef1eae77a5063e3748cd8deba9a13794ae0a9439c /fs/nfs/idmap.c
parent3063d8a16643190f9e12e9c7e9f1ca56f7e7934e (diff)
Revert "[PATCH] RPC,NFS: new rpc_pipefs patch"
This reverts 17f4e6febca160a9f9dd4bdece9784577a2f4524 commit.
Diffstat (limited to 'fs/nfs/idmap.c')
-rw-r--r--fs/nfs/idmap.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index 1d0a5bf0d264..ffb8df91dc34 100644
--- a/fs/nfs/idmap.c
+++ b/fs/nfs/idmap.c
@@ -66,6 +66,7 @@ struct idmap_hashtable {
66}; 66};
67 67
68struct idmap { 68struct idmap {
69 char idmap_path[48];
69 struct dentry *idmap_dentry; 70 struct dentry *idmap_dentry;
70 wait_queue_head_t idmap_wq; 71 wait_queue_head_t idmap_wq;
71 struct idmap_msg idmap_im; 72 struct idmap_msg idmap_im;
@@ -101,8 +102,11 @@ nfs_idmap_new(struct nfs4_client *clp)
101 102
102 memset(idmap, 0, sizeof(*idmap)); 103 memset(idmap, 0, sizeof(*idmap));
103 104
104 idmap->idmap_dentry = rpc_mkpipe(clp->cl_rpcclient->cl_dentry, 105 snprintf(idmap->idmap_path, sizeof(idmap->idmap_path),
105 "idmap", idmap, &idmap_upcall_ops, 0); 106 "%s/idmap", clp->cl_rpcclient->cl_pathname);
107
108 idmap->idmap_dentry = rpc_mkpipe(idmap->idmap_path,
109 idmap, &idmap_upcall_ops, 0);
106 if (IS_ERR(idmap->idmap_dentry)) { 110 if (IS_ERR(idmap->idmap_dentry)) {
107 kfree(idmap); 111 kfree(idmap);
108 return; 112 return;
@@ -124,7 +128,7 @@ nfs_idmap_delete(struct nfs4_client *clp)
124 128
125 if (!idmap) 129 if (!idmap)
126 return; 130 return;
127 rpc_unlink(idmap->idmap_dentry); 131 rpc_unlink(idmap->idmap_path);
128 clp->cl_idmap = NULL; 132 clp->cl_idmap = NULL;
129 kfree(idmap); 133 kfree(idmap);
130} 134}