diff options
Diffstat (limited to 'net/9p/client.c')
-rw-r--r-- | net/9p/client.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/9p/client.c b/net/9p/client.c index b2f70ec889c2..ad1c4489ab4d 100644 --- a/net/9p/client.c +++ b/net/9p/client.c | |||
@@ -1095,6 +1095,25 @@ error: | |||
1095 | } | 1095 | } |
1096 | EXPORT_SYMBOL(p9_client_fcreate); | 1096 | EXPORT_SYMBOL(p9_client_fcreate); |
1097 | 1097 | ||
1098 | int p9_client_link(struct p9_fid *dfid, struct p9_fid *oldfid, char *newname) | ||
1099 | { | ||
1100 | struct p9_client *clnt; | ||
1101 | struct p9_req_t *req; | ||
1102 | |||
1103 | P9_DPRINTK(P9_DEBUG_9P, ">>> TLINK dfid %d oldfid %d newname %s\n", | ||
1104 | dfid->fid, oldfid->fid, newname); | ||
1105 | clnt = dfid->clnt; | ||
1106 | req = p9_client_rpc(clnt, P9_TLINK, "dds", dfid->fid, oldfid->fid, | ||
1107 | newname); | ||
1108 | if (IS_ERR(req)) | ||
1109 | return PTR_ERR(req); | ||
1110 | |||
1111 | P9_DPRINTK(P9_DEBUG_9P, "<<< RLINK\n"); | ||
1112 | p9_free_req(clnt, req); | ||
1113 | return 0; | ||
1114 | } | ||
1115 | EXPORT_SYMBOL(p9_client_link); | ||
1116 | |||
1098 | int p9_client_clunk(struct p9_fid *fid) | 1117 | int p9_client_clunk(struct p9_fid *fid) |
1099 | { | 1118 | { |
1100 | int err; | 1119 | int err; |