diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-01 20:17:51 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-11 22:28:25 -0400 |
commit | 070b3656cf228eaaef7b28b59264c5c7cdbdd0fb (patch) | |
tree | 76040fdba3e0703df0be897aba7310332454d60e /include/net | |
parent | 4f3b35c157e43107cc7e1f1aa06694e8b22e10bb (diff) |
9p: switch p9_client_write() to passing it struct iov_iter *
... and make it loop until it's done
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/9p/client.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/9p/client.h b/include/net/9p/client.h index 6fab66c5c5af..63ae7653389d 100644 --- a/include/net/9p/client.h +++ b/include/net/9p/client.h | |||
@@ -211,6 +211,8 @@ struct p9_dirent { | |||
211 | char d_name[256]; | 211 | char d_name[256]; |
212 | }; | 212 | }; |
213 | 213 | ||
214 | struct iov_iter; | ||
215 | |||
214 | int p9_client_statfs(struct p9_fid *fid, struct p9_rstatfs *sb); | 216 | int p9_client_statfs(struct p9_fid *fid, struct p9_rstatfs *sb); |
215 | int p9_client_rename(struct p9_fid *fid, struct p9_fid *newdirfid, | 217 | int p9_client_rename(struct p9_fid *fid, struct p9_fid *newdirfid, |
216 | const char *name); | 218 | const char *name); |
@@ -238,8 +240,7 @@ int p9_client_remove(struct p9_fid *fid); | |||
238 | int p9_client_unlinkat(struct p9_fid *dfid, const char *name, int flags); | 240 | int p9_client_unlinkat(struct p9_fid *dfid, const char *name, int flags); |
239 | int p9_client_read(struct p9_fid *fid, char *data, char __user *udata, | 241 | int p9_client_read(struct p9_fid *fid, char *data, char __user *udata, |
240 | u64 offset, u32 count); | 242 | u64 offset, u32 count); |
241 | int p9_client_write(struct p9_fid *fid, char *data, const char __user *udata, | 243 | int p9_client_write(struct p9_fid *fid, u64 offset, struct iov_iter *from, int *err); |
242 | u64 offset, u32 count); | ||
243 | int p9_client_readdir(struct p9_fid *fid, char *data, u32 count, u64 offset); | 244 | int p9_client_readdir(struct p9_fid *fid, char *data, u32 count, u64 offset); |
244 | int p9dirent_read(struct p9_client *clnt, char *buf, int len, | 245 | int p9dirent_read(struct p9_client *clnt, char *buf, int len, |
245 | struct p9_dirent *dirent); | 246 | struct p9_dirent *dirent); |