]> www.infradead.org Git - nvme.git/commit
cachefiles: Set the max subreq size for cache writes to MAX_RW_COUNT
authorDavid Howells <dhowells@redhat.com>
Fri, 19 Jul 2024 14:19:02 +0000 (15:19 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 24 Jul 2024 08:53:13 +0000 (10:53 +0200)
commit51d37982bbac3ea0ca21b2797a9cb0044272b3aa
treee0a65db483922734b3e31a16ce06d41909eb1862
parent212be98aa19303cbf376d61faf9de3ec9997c1cd
cachefiles: Set the max subreq size for cache writes to MAX_RW_COUNT

Set the maximum size of a subrequest that writes to cachefiles to be
MAX_RW_COUNT so that we don't overrun the maximum write we can make to the
backing filesystem.

Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/1599005.1721398742@warthog.procyon.org.uk
cc: Jeff Layton <jlayton@kernel.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/cachefiles/io.c