cifs: Cut over to using netfslib
Make the cifs filesystem use netfslib to handle reading and writing on
behalf of cifs. The changes include:
(1) Various read_iter/write_iter type functions are turned into wrappers
around netfslib API functions or are pointed directly at those
functions:
cifs_file_direct{,_nobrl}_ops switch to use
netfs_unbuffered_read_iter and netfs_unbuffered_write_iter.
Large pieces of code that will be removed are #if'd out and will be removed
in subsequent patches.
[?] Why does cifs mark the page dirty in the destination buffer of a DIO
read? Should that happen automatically? Does netfs need to do that?
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
Showing
- fs/netfs/io.c 6 additions, 1 deletionfs/netfs/io.c
- fs/smb/client/cifsfs.c 4 additions, 4 deletionsfs/smb/client/cifsfs.c
- fs/smb/client/cifsfs.h 0 additions, 7 deletionsfs/smb/client/cifsfs.h
- fs/smb/client/cifsglob.h 3 additions, 2 deletionsfs/smb/client/cifsglob.h
- fs/smb/client/cifsproto.h 7 additions, 1 deletionfs/smb/client/cifsproto.h
- fs/smb/client/cifssmb.c 32 additions, 22 deletionsfs/smb/client/cifssmb.c
- fs/smb/client/file.c 86 additions, 75 deletionsfs/smb/client/file.c
- fs/smb/client/fscache.c 2 additions, 0 deletionsfs/smb/client/fscache.c
- fs/smb/client/fscache.h 4 additions, 0 deletionsfs/smb/client/fscache.h
- fs/smb/client/inode.c 18 additions, 1 deletionfs/smb/client/inode.c
- fs/smb/client/smb2pdu.c 70 additions, 47 deletionsfs/smb/client/smb2pdu.c
- fs/smb/client/smb2proto.h 1 addition, 1 deletionfs/smb/client/smb2proto.h
- fs/smb/client/trace.h 125 additions, 19 deletionsfs/smb/client/trace.h
- fs/smb/client/transport.c 3 additions, 0 deletionsfs/smb/client/transport.c
Loading
Please register or sign in to comment