cifs: Replace cifs_readdata with a wrapper around netfs_io_subrequest
authorDavid Howells <dhowells@redhat.com>
Wed, 9 Mar 2022 11:01:12 +0000 (11:01 +0000)
committerDavid Howells <dhowells@redhat.com>
Wed, 1 May 2024 17:08:18 +0000 (18:08 +0100)
commit753b67eb630db34e36ec4ae1e86c75e243ea4fc9
tree61bf7f01360fe01f9897ebbbf8758c5bd462ab09
parent0f7c0f3f51501a472a08d16315903d17012325ca
cifs: Replace cifs_readdata with a wrapper around netfs_io_subrequest

Netfslib has a facility whereby the allocation for netfs_io_subrequest can
be increased to so that filesystem-specific data can be tagged on the end.

Prepare to use this by making a struct, cifs_io_subrequest, that wraps
netfs_io_subrequest, and absorb struct cifs_readdata into it.

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: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
fs/smb/client/cifsglob.h
fs/smb/client/cifsproto.h
fs/smb/client/cifssmb.c
fs/smb/client/file.c
fs/smb/client/smb2ops.c
fs/smb/client/smb2pdu.c
fs/smb/client/smb2proto.h
fs/smb/client/transport.c