[PATCH v12 4/5] cachefiles: Don't rely on backing fs storage map for most use cases

David Howells dhowells at redhat.com
Wed Oct 14 02:45:25 PDT 2026


Does the attached fix the problem?

David
---
diff --git a/fs/netfs/buffered_read.c b/fs/netfs/buffered_read.c
index cc1b00f301d2..c0157f9a338d 100644
--- a/fs/netfs/buffered_read.c
+++ b/fs/netfs/buffered_read.c
@@ -379,7 +379,7 @@ static void netfs_read_to_pagecache(struct netfs_io_request *rreq)
 		}
 
 		subreq->start	= start;
-		subreq->len	= size;
+		subreq->len	= len;
 		if (copy)
 			__set_bit(NETFS_SREQ_COPY_TO_CACHE, &subreq->flags);
 




More information about the linux-afs mailing list