{"id":2223011,"url":"http://patchwork.ozlabs.org/api/covers/2223011/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-cifs-client/cover/20260414082004.3756080-1-dhowells@redhat.com/","project":{"id":12,"url":"http://patchwork.ozlabs.org/api/projects/12/?format=json","name":"Linux CIFS Client","link_name":"linux-cifs-client","list_id":"linux-cifs.vger.kernel.org","list_email":"linux-cifs@vger.kernel.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260414082004.3756080-1-dhowells@redhat.com>","list_archive_url":null,"date":"2026-04-14T08:19:56","name":"[v2,0/7] netfs: Miscellaneous fixes","submitter":{"id":59,"url":"http://patchwork.ozlabs.org/api/people/59/?format=json","name":"David Howells","email":"dhowells@redhat.com"},"mbox":"http://patchwork.ozlabs.org/project/linux-cifs-client/cover/20260414082004.3756080-1-dhowells@redhat.com/mbox/","series":[{"id":499799,"url":"http://patchwork.ozlabs.org/api/series/499799/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=499799","date":"2026-04-14T08:19:56","name":"netfs: Miscellaneous fixes","version":2,"mbox":"http://patchwork.ozlabs.org/series/499799/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2223011/comments/","headers":{"Return-Path":"\n <linux-cifs+bounces-10793-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-cifs@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=FqzDTgEi;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10793-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.b=\"FqzDTgEi\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=170.10.133.124","smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=redhat.com","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=redhat.com"],"Received":["from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvxzj30dwz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 18:20:33 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 960713019384\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 08:20:19 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A11153A1A2B;\n\tTue, 14 Apr 2026 08:20:18 +0000 (UTC)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 4829939F188\n\tfor <linux-cifs@vger.kernel.org>; Tue, 14 Apr 2026 08:20:17 +0000 (UTC)","from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-634-nhsVnpmANDakYrVdo-RK2Q-1; Tue,\n 14 Apr 2026 04:20:13 -0400","from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 6970A1800650;\n\tTue, 14 Apr 2026 08:20:11 +0000 (UTC)","from warthog.procyon.org.com (unknown [10.44.34.160])\n\tby mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 2F2E1195608E;\n\tTue, 14 Apr 2026 08:20:07 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776154818; cv=none;\n b=Vdc0mWLih4xot27YM+2GNvKHKhII1v8TKy3Gz4lhvfTf+6MgrjoySqItSMY4OfFOv5CMurXiqzG/ANnWVYj9P16adM8suEPMuU5j/QMaPfJOAcLmejy3j5ngQyczAgZiNhAKWF2A2HsaZ4aqgXS89LYN+KKTFoGgcfdVCbTF7ik=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776154818; c=relaxed/simple;\n\tbh=RhC+R54qGCrLtOGs/kexq8BEeVwPnNprlCSo1U9Xboo=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=phcMe1x28RUu1EEqPe22/+ZJeknvWR/iRZXLj9lzaPlwiW3o49pNe46yWFHksZ4ue1UXElmoETPtdPNngp8XdV9SFKNaslTeJxtprZBNmf2roXCtk6PYPahk+3tX+2NuvqlXRLdeqOpBwZ2IJ6ay1J0/wZb6dusMBleuKioG8M8=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=redhat.com;\n spf=pass smtp.mailfrom=redhat.com;\n dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.b=FqzDTgEi; arc=none smtp.client-ip=170.10.133.124","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1776154816;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding;\n\tbh=Lkc8n/nLblH1jEvDoVkgjW0PN6Sjk/z6iJKsA99eTN8=;\n\tb=FqzDTgEiceblGZ5fHMX+kocp5rNBSUUhqpHdq/dqmINUWqwLQKzaXbsFVFbM6woxhyRPbN\n\ts/fQIL25rdYxHvwDUVHH1Hu651xawUUtS4S0nfB8CGranKPxbJ4YYcwFgmtUShHeEvttrB\n\t4XI2x3BH4WO5fLWJilWAkkYxhVzlS9o=","X-MC-Unique":"nhsVnpmANDakYrVdo-RK2Q-1","X-Mimecast-MFC-AGG-ID":"nhsVnpmANDakYrVdo-RK2Q_1776154812","From":"David Howells <dhowells@redhat.com>","To":"Christian Brauner <christian@brauner.io>","Cc":"David Howells <dhowells@redhat.com>,\n\tPaulo Alcantara <pc@manguebit.com>,\n\tnetfs@lists.linux.dev,\n\tlinux-afs@lists.infradead.org,\n\tlinux-cifs@vger.kernel.org,\n\tceph-devel@vger.kernel.org,\n\tlinux-fsdevel@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org","Subject":"[PATCH v2 0/7] netfs: Miscellaneous fixes","Date":"Tue, 14 Apr 2026 09:19:56 +0100","Message-ID":"<20260414082004.3756080-1-dhowells@redhat.com>","Precedence":"bulk","X-Mailing-List":"linux-cifs@vger.kernel.org","List-Id":"<linux-cifs.vger.kernel.org>","List-Subscribe":"<mailto:linux-cifs+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-cifs+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Scanned-By":"MIMEDefang 3.0 on 10.30.177.17"},"content":"Hi Christian,\n\nHere are some miscellaneous fixes for netfslib:\n\n (1) Fix triggering of a VM_BUG_ON_FOLIO() in netfs_write_begin().\n\n (2) Fix error handling in netfs_extract_user_iter().\n\n (3) Fix netfs_invalidate_folio() to clear the folio dirty bit if all dirty\n     data removed.\n\n (4) Fix the handling of a partially failed copy (ie. EFAULT) into a\n     streaming write folio.  Also remove the netfs_folio if a streaming\n     write folio is entirely overwritten.\n\n (5) Fix netfs_read_gaps() to remove the netfs_folio from a filled folio.\n\n (6) Fix the calculation of zero_point in netfs_release_folio() to limit it\n     to ->remote_i_size, not ->i_size.\n\n (7) Fix netfs_perform_read() to not disable streaming writes when writing\n     to an fd that's open O_RDWR.\n\nThe patches can also be found here:\n\n\thttps://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=netfs-fixes\n\nThanks,\nDavid\n\nChanges\n=======\nver #2)\n- Rebase on v7.0\n- Drop the cachefiles dentry count fix as that's now upstream.\n- Add four new patches from testing the generic/522 xfstest.\n\nDavid Howells (5):\n  netfs: Fix netfs_invalidate_folio() to clear dirty bit if all changes\n    gone\n  netfs: Fix streaming write being overwritten\n  netfs: Fix read-gaps to remove netfs_folio from filled folio\n  netfs: Fix zeropoint update where i_size > remote_i_size\n  netfs: Fix write streaming disablement if fd open O_RDWR\n\nPaulo Alcantara (1):\n  netfs: fix error handling in netfs_extract_user_iter()\n\nViacheslav Dubeyko (1):\n  netfs: fix VM_BUG_ON_FOLIO() issue in netfs_write_begin() call\n\n fs/netfs/buffered_read.c     |  9 ++++---\n fs/netfs/buffered_write.c    | 51 +++++++++++++++++++++++-------------\n fs/netfs/iterator.c          | 13 ++++++---\n fs/netfs/misc.c              |  8 ++++--\n fs/netfs/read_retry.c        | 11 ++++++--\n include/trace/events/netfs.h |  5 ++++\n 6 files changed, 69 insertions(+), 28 deletions(-)"}