@@ -144,8 +144,8 @@ struct netfs_io_stream {
144
144
struct netfs_io_subrequest * front ; /* Op being collected */
145
145
unsigned long long collected_to ; /* Position we've collected results to */
146
146
size_t transferred ; /* The amount transferred from this stream */
147
- enum netfs_io_source source ; /* Where to read from/write to */
148
147
unsigned short error ; /* Aggregate error for the stream */
148
+ enum netfs_io_source source ; /* Where to read from/write to */
149
149
unsigned char stream_nr ; /* Index of stream in parent table */
150
150
bool avail ; /* T if stream is available */
151
151
bool active ; /* T if stream is active */
@@ -240,27 +240,27 @@ struct netfs_io_request {
240
240
void * netfs_priv ; /* Private data for the netfs */
241
241
void * netfs_priv2 ; /* Private data for the netfs */
242
242
struct bio_vec * direct_bv ; /* DIO buffer list (when handling iovec-iter) */
243
- unsigned int direct_bv_count ; /* Number of elements in direct_bv[] */
244
- unsigned int debug_id ;
245
- unsigned int rsize ; /* Maximum read size (0 for none) */
246
- unsigned int wsize ; /* Maximum write size (0 for none) */
247
- atomic_t subreq_counter ; /* Next subreq->debug_index */
248
- unsigned int nr_group_rel ; /* Number of refs to release on ->group */
249
- spinlock_t lock ; /* Lock for queuing subreqs */
250
243
unsigned long long submitted ; /* Amount submitted for I/O so far */
251
244
unsigned long long len ; /* Length of the request */
252
245
size_t transferred ; /* Amount to be indicated as transferred */
253
246
long error ; /* 0 or error that occurred */
254
- enum netfs_io_origin origin ; /* Origin of the request */
255
- bool direct_bv_unpin ; /* T if direct_bv[] must be unpinned */
256
247
unsigned long long i_size ; /* Size of the file */
257
248
unsigned long long start ; /* Start position */
258
249
atomic64_t issued_to ; /* Write issuer folio cursor */
259
250
unsigned long long collected_to ; /* Point we've collected to */
260
251
unsigned long long cleaned_to ; /* Position we've cleaned folios to */
261
252
unsigned long long abandon_to ; /* Position to abandon folios to */
262
253
pgoff_t no_unlock_folio ; /* Don't unlock this folio after read */
254
+ unsigned int direct_bv_count ; /* Number of elements in direct_bv[] */
255
+ unsigned int debug_id ;
256
+ unsigned int rsize ; /* Maximum read size (0 for none) */
257
+ unsigned int wsize ; /* Maximum write size (0 for none) */
258
+ atomic_t subreq_counter ; /* Next subreq->debug_index */
259
+ unsigned int nr_group_rel ; /* Number of refs to release on ->group */
260
+ spinlock_t lock ; /* Lock for queuing subreqs */
263
261
unsigned char front_folio_order ; /* Order (size) of front folio */
262
+ enum netfs_io_origin origin ; /* Origin of the request */
263
+ bool direct_bv_unpin ; /* T if direct_bv[] must be unpinned */
264
264
refcount_t ref ;
265
265
unsigned long flags ;
266
266
#define NETFS_RREQ_OFFLOAD_COLLECTION 0 /* Offload collection to workqueue */
0 commit comments