* [PATCH] cachefiles: Set the max subreq size for cache writes to MAX_RW_COUNT
@ 2024-07-19 14:19 David Howells
2024-07-22 13:42 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2024-07-19 14:19 UTC (permalink / raw)
To: Christian Brauner
Cc: dhowells, Jeff Layton, netfs, linux-fsdevel, linux-kernel
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>
cc: Jeff Layton <jlayton@kernel.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
---
fs/cachefiles/io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/cachefiles/io.c b/fs/cachefiles/io.c
index e667dbcd20e8..a91acd03ee12 100644
--- a/fs/cachefiles/io.c
+++ b/fs/cachefiles/io.c
@@ -630,7 +630,7 @@ static void cachefiles_prepare_write_subreq(struct netfs_io_subrequest *subreq)
_enter("W=%x[%x] %llx", wreq->debug_id, subreq->debug_index, subreq->start);
- subreq->max_len = ULONG_MAX;
+ subreq->max_len = MAX_RW_COUNT;
subreq->max_nr_segs = BIO_MAX_VECS;
if (!cachefiles_cres_file(cres)) {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] cachefiles: Set the max subreq size for cache writes to MAX_RW_COUNT
2024-07-19 14:19 [PATCH] cachefiles: Set the max subreq size for cache writes to MAX_RW_COUNT David Howells
@ 2024-07-22 13:42 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2024-07-22 13:42 UTC (permalink / raw)
To: David Howells
Cc: Christian Brauner, Jeff Layton, netfs, linux-fsdevel, linux-kernel
On Fri, 19 Jul 2024 15:19:02 +0100, David Howells wrote:
> 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.
>
>
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes
[1/1] cachefiles: Set the max subreq size for cache writes to MAX_RW_COUNT
https://git.kernel.org/vfs/vfs/c/1275fb2bfa90
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-22 13:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-19 14:19 [PATCH] cachefiles: Set the max subreq size for cache writes to MAX_RW_COUNT David Howells
2024-07-22 13:42 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®