Skip to content

Commit 040a82b

Browse files
committed
netfs: Rearrange netfs_io_subrequest to put request pointer first
Rearrange the netfs_io_subrequest struct to put the netfs_io_request pointer (rreq) first. This then allows netfs_io_subrequest to be put in a union with a pointer to a wrapper around netfs_io_request. This will be useful in the future for cifs and maybe ceph. Signed-off-by: David Howells <[email protected]> cc: Steve French <[email protected]> cc: Shyam Prasad N <[email protected]> cc: Rohith Surabattula <[email protected]> cc: Jeff Layton <[email protected]> cc: [email protected] cc: [email protected] cc: [email protected] cc: [email protected]
1 parent 252cf7b commit 040a82b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/netfs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ struct netfs_cache_resources {
204204
* the pages it points to can be relied on to exist for the duration.
205205
*/
206206
struct netfs_io_subrequest {
207-
struct work_struct work;
208207
struct netfs_io_request *rreq; /* Supervising I/O request */
208+
struct work_struct work;
209209
struct list_head rreq_link; /* Link in rreq->subrequests */
210210
struct iov_iter io_iter; /* Iterator for this subrequest */
211211
loff_t start; /* Where to start the I/O */

0 commit comments

Comments
 (0)