@@ -71,11 +71,11 @@ Read Helper Functions
7171Three read helpers are provided::
7272
7373 void netfs_readahead(struct readahead_control *ractl,
74- const struct netfs_read_request_ops *ops,
74+ const struct netfs_request_ops *ops,
7575 void *netfs_priv);
7676 int netfs_readpage(struct file *file,
7777 struct folio *folio,
78- const struct netfs_read_request_ops *ops,
78+ const struct netfs_request_ops *ops,
7979 void *netfs_priv);
8080 int netfs_write_begin(struct file *file,
8181 struct address_space *mapping,
@@ -84,7 +84,7 @@ Three read helpers are provided::
8484 unsigned int flags,
8585 struct folio **_folio,
8686 void **_fsdata,
87- const struct netfs_read_request_ops *ops,
87+ const struct netfs_request_ops *ops,
8888 void *netfs_priv);
8989
9090Each corresponds to a VM operation, with the addition of a couple of parameters
@@ -116,7 +116,7 @@ occurs, the request will get partially completed if sufficient data is read.
116116
117117Additionally, there is::
118118
119- * void netfs_subreq_terminated(struct netfs_read_subrequest *subreq,
119+ * void netfs_subreq_terminated(struct netfs_io_subrequest *subreq,
120120 ssize_t transferred_or_error,
121121 bool was_async);
122122
@@ -132,15 +132,15 @@ Read Helper Structures
132132The read helpers make use of a couple of structures to maintain the state of
133133the read. The first is a structure that manages a read request as a whole::
134134
135- struct netfs_read_request {
135+ struct netfs_io_request {
136136 struct inode *inode;
137137 struct address_space *mapping;
138138 struct netfs_cache_resources cache_resources;
139139 void *netfs_priv;
140140 loff_t start;
141141 size_t len;
142142 loff_t i_size;
143- const struct netfs_read_request_ops *netfs_ops;
143+ const struct netfs_request_ops *netfs_ops;
144144 unsigned int debug_id;
145145 ...
146146 };
@@ -187,8 +187,8 @@ The above fields are the ones the netfs can use. They are:
187187The second structure is used to manage individual slices of the overall read
188188request::
189189
190- struct netfs_read_subrequest {
191- struct netfs_read_request *rreq;
190+ struct netfs_io_subrequest {
191+ struct netfs_io_request *rreq;
192192 loff_t start;
193193 size_t len;
194194 size_t transferred;
@@ -244,23 +244,23 @@ Read Helper Operations
244244The network filesystem must provide the read helpers with a table of operations
245245through which it can issue requests and negotiate::
246246
247- struct netfs_read_request_ops {
248- void (*init_rreq )(struct netfs_read_request *rreq, struct file *file);
247+ struct netfs_request_ops {
248+ void (*init_request )(struct netfs_io_request *rreq, struct file *file);
249249 bool (*is_cache_enabled)(struct inode *inode);
250- int (*begin_cache_operation)(struct netfs_read_request *rreq);
251- void (*expand_readahead)(struct netfs_read_request *rreq);
252- bool (*clamp_length)(struct netfs_read_subrequest *subreq);
253- void (*issue_op)(struct netfs_read_subrequest *subreq);
254- bool (*is_still_valid)(struct netfs_read_request *rreq);
250+ int (*begin_cache_operation)(struct netfs_io_request *rreq);
251+ void (*expand_readahead)(struct netfs_io_request *rreq);
252+ bool (*clamp_length)(struct netfs_io_subrequest *subreq);
253+ void (*issue_op)(struct netfs_io_subrequest *subreq);
254+ bool (*is_still_valid)(struct netfs_io_request *rreq);
255255 int (*check_write_begin)(struct file *file, loff_t pos, unsigned len,
256256 struct folio *folio, void **_fsdata);
257- void (*done)(struct netfs_read_request *rreq);
257+ void (*done)(struct netfs_io_request *rreq);
258258 void (*cleanup)(struct address_space *mapping, void *netfs_priv);
259259 };
260260
261261The operations are as follows:
262262
263- * ``init_rreq () ``
263+ * ``init_request () ``
264264
265265 [Optional] This is called to initialise the request structure. It is given
266266 the file for reference and can modify the ->netfs_priv value.
@@ -420,12 +420,12 @@ The network filesystem's ->begin_cache_operation() method is called to set up a
420420cache and this must call into the cache to do the work. If using fscache, for
421421example, the cache would call::
422422
423- int fscache_begin_read_operation(struct netfs_read_request *rreq,
423+ int fscache_begin_read_operation(struct netfs_io_request *rreq,
424424 struct fscache_cookie *cookie);
425425
426426passing in the request pointer and the cookie corresponding to the file.
427427
428- The netfs_read_request object contains a place for the cache to hang its
428+ The netfs_io_request object contains a place for the cache to hang its
429429state::
430430
431431 struct netfs_cache_resources {
@@ -443,7 +443,7 @@ operation table looks like the following::
443443 void (*expand_readahead)(struct netfs_cache_resources *cres,
444444 loff_t *_start, size_t *_len, loff_t i_size);
445445
446- enum netfs_read_source (*prepare_read)(struct netfs_read_subrequest *subreq,
446+ enum netfs_io_source (*prepare_read)(struct netfs_io_subrequest *subreq,
447447 loff_t i_size);
448448
449449 int (*read)(struct netfs_cache_resources *cres,
0 commit comments