From patchwork Mon Jan 22 22:32:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13526323 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6A1AC46CD2 for ; Mon, 22 Jan 2024 22:32:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 365A26B008A; Mon, 22 Jan 2024 17:32:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3133E6B008C; Mon, 22 Jan 2024 17:32:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1DB948D0001; Mon, 22 Jan 2024 17:32:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 084876B008A for ; Mon, 22 Jan 2024 17:32:41 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id A7EA11401B7 for ; Mon, 22 Jan 2024 22:32:40 +0000 (UTC) X-FDA: 81708397680.07.072C7F6 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf12.hostedemail.com (Postfix) with ESMTP id 192CE4001B for ; Mon, 22 Jan 2024 22:32:38 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="eKU3HnG/"; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf12.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1705962759; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=6rMqtCN9Nns9gicLLQn3euoOj3eY7rsKvUOdFV5pAfA=; b=yl5eXw8Mo/WxRGKxezEPzXzmySF4zP/nygLGucj81K6bLYDa9oUGuLsChSjQSlXSLPqTMA x/AycmYn7ODKEhIwmlmQtP2538dxGeqMwl9qp5istm0wQt9JARXTb4EQEgcbU4vyVOyQVe ocMfKDIBgHSX4TvROf/7wV2PDx3YEW0= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="eKU3HnG/"; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf12.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1705962759; a=rsa-sha256; cv=none; b=Y8vvK5cWQC4v8wnuUWatZ0uvlUOLFnY/HwzMCZa/oF8zTYf1kbLRaQOIFF7V29xsHU45/3 8lYQCv+vTKz0Cqq9VCcKcXcjBNR2vrA0hAw4jfnQJOMYX0RTV05IHkpWeUHNafC5daTwXr oD37ARt3zdHO57++nKm7zs6+69Xz8PQ= 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> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Rspamd-Queue-Id: 192CE4001B X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: jtc93hyghq6z1gs1z5hyqfg4dwqc53ut X-HE-Tag: 1705962758-182980 X-HE-Meta: U2FsdGVkX1+skkldh0aJbxBUnJ/8gSeVClei5xv2+rXXkNf+dAyjZz/6dRnjCDCLwa7OZCYurjQXhkuSYEflSDa0r76j3gTM50HRj2iEAfe19Wym1GaqQDH+IQx70ECmNAI9dpVXnCKkFw/ACdQ5ozfZZxO/WYiGwjineaKJ30y/eNa72WNarOYtbSanMM2pUh4+dFiqT9dQXVkadu8E6m90juJNNOk89DY/30DtTLOxTVjM7wzinrvJpJ8m+SrlBD2cJYqmTfhYkqwFoksJg3j9WUYrZBmI1bHi1jsnhHRdgaIWvuacwZa0NiqgKHw+dUB7dc/73nbCKVWQuqT64KdGccoBHhEiw8EKblwNXBVvvXstutrLwp9NczrVv/gsPH3n4OppPN3BL5NGyLuo5XHKCWNWKL2bNYkojTZQSMJZ+lZVB/3MvvTNfrai6h3czi3UMDxjaRJue+CrLwW3C5dC4/QM8PyEby3EvXKGwnr0iBvp3sC2SLfp3X4zCwg+RxmZQfEnWuc+wTDBEah7yMt92fprlZxgQuf4YpEI+1vpSE6njmkBCqZMUWPuUHnM3vGAS+c/vj7zinjRLE1Nm/tEmfvjWB5dKBeVsh06dYTk/3tgyV/1M43VKN+GG0NtFXq81AVUYShqafMgof9wx392sD2oyk4+RqWTzi/vTl/7b1TDci8snx0whMqxrV0TeskIywOz7W7IW9gpuSyC3Q1b1MI97Grh/bYBjdeGcVjRo1w0gOLntCaxereVFOW5mVqpheDKCvZQ2s93CIS7iQhmvuhneK6cZGhKoulI//2CXawnRVBK0RCK9uQKbf7xP+ZMwMQKgbGZpqI5hlBnF89468+76DMnzefPvNsq/v3vfzTQq65whQjkQtAsvTNrqihJwuYcGFN9eOItneZUFw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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(-)