hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/include/net/9p/client.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * include/net/9p/client.h
34 *
....@@ -5,22 +6,6 @@
56 *
67 * Copyright (C) 2008 by Eric Van Hensbergen <ericvh@gmail.com>
78 * Copyright (C) 2007 by Latchesar Ionkov <lucho@ionkov.net>
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2
11
- * as published by the Free Software Foundation.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to:
20
- * Free Software Foundation
21
- * 51 Franklin Street, Fifth Floor
22
- * Boston, MA 02111-1301 USA
23
- *
249 */
2510
2611 #ifndef NET_9P_CLIENT_H
....@@ -88,7 +73,6 @@
8873 * @wq: wait_queue for the client to block on for this request
8974 * @tc: the request fcall structure
9075 * @rc: the response fcall structure
91
- * @aux: transport specific data (provided for trans_fd migration)
9276 * @req_list: link for higher level objects to chain requests
9377 */
9478 struct p9_req_t {
....@@ -98,7 +82,6 @@
9882 wait_queue_head_t wq;
9983 struct p9_fcall tc;
10084 struct p9_fcall rc;
101
- void *aux;
10285 struct list_head req_list;
10386 };
10487
....@@ -215,6 +198,8 @@
215198 int p9_client_remove(struct p9_fid *fid);
216199 int p9_client_unlinkat(struct p9_fid *dfid, const char *name, int flags);
217200 int p9_client_read(struct p9_fid *fid, u64 offset, struct iov_iter *to, int *err);
201
+int p9_client_read_once(struct p9_fid *fid, u64 offset, struct iov_iter *to,
202
+ int *err);
218203 int p9_client_write(struct p9_fid *fid, u64 offset, struct iov_iter *from, int *err);
219204 int p9_client_readdir(struct p9_fid *fid, char *data, u32 count, u64 offset);
220205 int p9dirent_read(struct p9_client *clnt, char *buf, int len,