Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp129532rdb; Mon, 22 Jan 2024 14:33:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgBksXqIb8ec/GxZ5rZ28b+OGQlGc04Vr35ozhJNd1efO6WtHsB3LKXTEyn8m/xCbPxru9 X-Received: by 2002:a05:6a00:1944:b0:6db:d49c:dcef with SMTP id s4-20020a056a00194400b006dbd49cdcefmr4673762pfk.45.1705962790498; Mon, 22 Jan 2024 14:33:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705962790; cv=pass; d=google.com; s=arc-20160816; b=NdNII/o1JV3cyJAU5yoraAJpiNkGReqvpg1se9K4LYqtqx7RsmtBg35vhTDiYqshwz WwIXwV9LOMfUYyZY87TAq/yHdiXOYji1dmpvD5dErdfQahpFAO49B7p7g4kwZ1zG/n3I dKH1HbuJex+fhnysLyq31tZeRL5ysMpiVixtxp0JgxpmpL9KDo6Luej5phxwIQjg0Vsw hL3qqR7bL4l8vDVsI1ETb5l1gCGyrucmh+upXq1IoviV/smP2O1j6/Gzw/xgiTVGBvPL 6XZ7pxMiwbyOmlm1mPWkNrDF9Ajri7jO2wG8HMYglfOXZYlULZoqz5fz6dsECIPsmLQ2 7fKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=6rMqtCN9Nns9gicLLQn3euoOj3eY7rsKvUOdFV5pAfA=; fh=Tva/nXHuyROwY9ahRsoTivRGzGustfEnjShz7AiM/lI=; b=0XSy2fjAYQ1fookKI5ddQs8Anq8UvkBd2bCrbg677zz2abSjLpYQV5rhJ2BUua55qN vUbnnopS08V5yiFxaSbrJkd51qLPaF0EP5y+Y9vVlQXU0n4BHaj72lWswWO7/AW6u9gC 0tB2ZY54YwaZDI2V49DGLaHRJgYGnUSVGe2vpKbKHlL7ZnSxB2PXlANIpj6bU2/IuRTy pw1f0Wu4I+BygX9d3+D+YPro2PlTde0D0KzRxFc3iuIj8O/j2+Ab+VMvAlsoOHrEYNh/ FoUQN8soQDYHG+w8nsV7dtM8Vf6MzMRj/Hne79lxGytnwY9GAnuV3rb5I8lrjBUmY2pf QLkw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="eKU3HnG/"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-34240-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l33-20020a635721000000b005cdf7e9debasi8711780pgb.522.2024.01.22.14.33.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 14:33:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34240-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="eKU3HnG/"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-34240-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1AE53283308 for ; Mon, 22 Jan 2024 22:33:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A786C18C20; Mon, 22 Jan 2024 22:32:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="eKU3HnG/" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 23A1412B76 for ; Mon, 22 Jan 2024 22:32:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705962761; cv=none; b=XOmRABGEKTOUT8qAKrV69j/VJBNdJvyRVBmQ8/sKdgJmzloo3VdhXqtBoIM6z4vUPp7MnvBgAgCfnCyq7OIM/Ti6zOy/Bf9KuhUsIqii0GkaDl/G8LyycCLlaTJMf4QSeJDgGK+PDZ0X4rnEpP42JETLz0OrKLaa8rmKXWvZQZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705962761; c=relaxed/simple; bh=daZFC62S3UR5/eYOj7P2J+CoCIGhjBE2E3ZrLE+pFjQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YU9CIdm2dn5W2JG3kssrbxemvnfNHaB3a5OY/W3NKW4og4CsHVntv+/ckBoQcBynjI+v80aIEd9JUnJvjmTjcDwv79179qBkNyShpSIiKblqsVrgQlatAZR2VWBbkk0H1CniJontYOeLBrFu1oNQ9gkOWZu0VReSmT8ymvXQ+k0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=eKU3HnG/; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705962758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6rMqtCN9Nns9gicLLQn3euoOj3eY7rsKvUOdFV5pAfA=; b=eKU3HnG/G3v6dgfryRu4P2BOhEutBoNu/++OwmyqXzbMrhbrXNyx8TZdxmIcf1Qz+qRGy8 2kC7ALMtFjdLTguOKr05Dt+FYDnq0ffFU93fwYwuLdO2R/2k9Lz89H7fIK2M8lhixm5/dK s+CCt+neT6d6LJZW5VnaRKHmt2KG0/Y= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-101-xVA4GeBNMjm4A_25AiODpA-1; Mon, 22 Jan 2024 17:32:35 -0500 X-MC-Unique: xVA4GeBNMjm4A_25AiODpA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 03AE785A589; Mon, 22 Jan 2024 22:32:34 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 48FAB5012; Mon, 22 Jan 2024 22:32:32 +0000 (UTC) From: David Howells To: Christian Brauner Cc: David Howells , Jeff Layton , Matthew Wilcox , 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-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 00/10] netfs, afs, cifs, cachefiles, erofs: Miscellaneous fixes Date: Mon, 22 Jan 2024 22:32:13 +0000 Message-ID: <20240122223230.4000595-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 Hi Christian, Here are some miscellaneous fixes for netfslib and a number of filesystems: (1) Replace folio_index() with folio->index in netfs, afs and cifs. (2) Fix an oops in fscache_put_cache(). (3) Fix error handling in netfs_perform_write(). (4) Fix an oops in cachefiles when not using erofs ondemand mode. (5) In afs, hide silly-rename files from getdents() to avoid problems with tar and suchlike. (6) In afs, fix error handling in lookup with a bulk status fetch. (7) In afs, afs_dynroot_d_revalidate() is redundant, so remove it. (8) In afs, fix the RCU unlocking in afs_proc_addr_prefs_show(). The patches can also be found here: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=netfs-fixes Thanks, David Changes ======= ver #2) - Update the commit messages of the don't-use-folio_index patches. - Move check of object->ondemand into cachefiles_ondemand_init_object(). Link: https://lore.kernel.org/r/20240122123845.3822570-1-dhowells@redhat.com/ # v1 Dan Carpenter (2): netfs, fscache: Prevent Oops in fscache_put_cache() netfs: Fix a NULL vs IS_ERR() check in netfs_perform_write() David Howells (8): netfs: Don't use certain unnecessary folio_*() functions afs: Don't use certain unnecessary folio_*() functions cifs: Don't use certain unnecessary folio_*() functions cachefiles, erofs: Fix NULL deref in when cachefiles is not doing ondemand-mode afs: Hide silly-rename files from userspace afs: Fix error handling with lookup via FS.InlineBulkStatus afs: Remove afs_dynroot_d_revalidate() as it is redundant afs: Fix missing/incorrect unlocking of RCU read lock fs/afs/dir.c | 30 ++++++++++++++++++++++-------- fs/afs/dynroot.c | 9 --------- fs/afs/proc.c | 5 +++-- fs/cachefiles/ondemand.c | 3 +++ fs/netfs/buffered_read.c | 12 ++++++------ fs/netfs/buffered_write.c | 15 ++++++++------- fs/netfs/fscache_cache.c | 3 ++- fs/netfs/io.c | 2 +- fs/netfs/misc.c | 2 +- fs/smb/client/file.c | 10 +++++----- include/trace/events/afs.h | 25 +++++++++++++++++++++++++ 11 files changed, 76 insertions(+), 40 deletions(-)