From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B6D3480DEF for ; Wed, 14 Oct 2026 09:45:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791971149; cv=none; b=K/uplklpPPOWVYlhEC77En4pfxiIapNyE9KJJghLGA54ZOv7DjicEy1ooW4ZbqkbuAqqFT5NPmRxuJexD34JVPhPqyPGQXiTGPa/PQXE0g+MQoU4RxR+1hHswdiDAIaco0IqoaH70fKBbP8c95yjuq6q1tbgPSaEn528/JeBiOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791971149; c=relaxed/simple; bh=2euws2BtiykWLEQqEj/FcYcSrWCloXdpYoSOULCX5dA=; h=From:In-Reply-To:References:To:Cc:Subject:MIME-Version:Date: Message-ID:Content-Type; b=Bimkqh3psSaxO5bYDuM2b50FznOgwzVuRlTZkJ2z+/nE+PuV1rLQ9H5fUBT0g1IDFZvCjIljhhjcUBiBFUw8/sSaEvDSMbCk8TB7NZaqwdD9Kr9jWo7h3vUCgHFw2zj/Ujfxt7BLXgyAlKIuASWuG6lS4fuWRvts9Bm+LMz182A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=gFBLPyEG; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gFBLPyEG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791971147; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2euws2BtiykWLEQqEj/FcYcSrWCloXdpYoSOULCX5dA=; b=gFBLPyEGRmfkn51xWN+Xe2sThccf7Q752PocaagxtfG6tqNYpAQ8vaNXS9zDITt0RX+y9Q e5D4Zv6HKMtbMvoHTcUQJ0jw2+kHDrzfzQ/SuGDs2bUUS0QAx1Czw+hhIoTVoh3rjlFKUT RTJhzfjhvLL8pqvOwhZoEIQelD+Qn0w= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-524-o3tIefQBPv-FG1zUwHrgIw-1; Wed, 14 Oct 2026 09:45:38 +0000 X-MC-Unique: o3tIefQBPv-FG1zUwHrgIw-1 X-Mimecast-MFC-AGG-ID: o3tIefQBPv-FG1zUwHrgIw_1791971135 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 396ED19560B2; Wed, 14 Oct 2026 09:45:34 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.44.48.11]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 696E830000E3; Wed, 14 Oct 2026 09:45:27 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20261013.cachefiles-partial-zeros-trace.pchmelar@innovatrics.com> References: <20261013.cachefiles-partial-zeros-trace.pchmelar@innovatrics.com> <20260910220242.2165023-1-dhowells@redhat.com> <20260910220242.2165023-5-dhowells@redhat.com> <20261011.cachefiles-partial-zeros.pchmelar@innovatrics.com> <1655268.1791878098@warthog.procyon.org.uk> To: Petr Chmelar Cc: dhowells@redhat.com, Christian Brauner , Paulo Alcantara , Matthew Wilcox , Namjae Jeon , Marc Dionne , Stefan Metzmacher , Eric Van Hensbergen , Dominique Martinet , Ilya Dryomov , netfs@lists.linux.dev, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v12 4/5] cachefiles: Don't rely on backing fs storage map for most use cases Precedence: bulk X-Mailing-List: netfs@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Wed, 14 Oct 2026 10:45:25 +0100 Message-ID: <1995693.1791971125@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-MFC-PROC-ID: yuPLVRKfTYn_Ym_p1x-0I2h6gbNvdWeIHlSwyd3kNjM_1791971135 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="us-ascii" Content-ID: <1995692.1791971125.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable 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_req= uest *rreq) =09=09} =20 =09=09subreq->start=09=3D start; -=09=09subreq->len=09=3D size; +=09=09subreq->len=09=3D len; =09=09if (copy) =09=09=09__set_bit(NETFS_SREQ_COPY_TO_CACHE, &subreq->flags); =20