]> git.ipfire.org Git - thirdparty/linux.git/commit
netfs: Implement unbuffered/DIO write support
authorDavid Howells <dhowells@redhat.com>
Mon, 21 Feb 2022 11:38:17 +0000 (11:38 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 28 Dec 2023 09:45:24 +0000 (09:45 +0000)
commit153a9961b551101cd38e94e26cd92fbfd198b19b
tree4d45c248dbdaf8ded00848164de353f239f8bac9
parent016dc8516aec8719641e7aaaacd78d344759178e
netfs: Implement unbuffered/DIO write support

Implement support for unbuffered writes and direct I/O writes.  If the
write is misaligned with respect to the fscrypt block size, then RMW cycles
are performed if necessary.  DIO writes are a special case of unbuffered
writes with extra restriction imposed, such as block size alignment
requirements.

Also provide a field that can tell the code to add some extra space onto
the bounce buffer for use by the filesystem in the case of a
content-encrypted file.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: linux-cachefs@redhat.com
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
fs/afs/inode.c
fs/netfs/Makefile
fs/netfs/direct_write.c [new file with mode: 0644]
fs/netfs/internal.h
fs/netfs/io.c
fs/netfs/main.c
fs/netfs/objects.c
fs/netfs/output.c
include/linux/netfs.h
include/trace/events/netfs.h
mm/filemap.c