Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <dhowells@redhat.com>
cc: Steve French <sfrench@samba.org>
cc: Shyam Prasad N <nspmangalore@gmail.com>
cc: Rohith Surabattula <rohiths.msft@gmail.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: linux-cifs@vger.kernel.org
cc: linux-cachefs@redhat.com
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org

+1 -1
+1 -1
include/linux/netfs.h
··· 204 204 * the pages it points to can be relied on to exist for the duration. 205 205 */ 206 206 struct netfs_io_subrequest { 207 - struct work_struct work; 208 207 struct netfs_io_request *rreq; /* Supervising I/O request */ 208 + struct work_struct work; 209 209 struct list_head rreq_link; /* Link in rreq->subrequests */ 210 210 struct iov_iter io_iter; /* Iterator for this subrequest */ 211 211 loff_t start; /* Where to start the I/O */