From patchwork Mon Jan 22 12:38:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13525410 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 46399C4725D for ; Mon, 22 Jan 2024 12:39:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D25AD6B0080; Mon, 22 Jan 2024 07:39:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CAF266B0081; Mon, 22 Jan 2024 07:39:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B76306B0085; Mon, 22 Jan 2024 07:39:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id A47EA6B0080 for ; Mon, 22 Jan 2024 07:39:00 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 76B8DA1DFB for ; Mon, 22 Jan 2024 12:39:00 +0000 (UTC) X-FDA: 81706901640.02.50B5314 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf04.hostedemail.com (Postfix) with ESMTP id AB5A24001A for ; Mon, 22 Jan 2024 12:38:58 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=WH7j9d3a; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf04.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.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=1705927138; 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=Ca8cxTevNKQzpblzOoDFxpwIIAtXLPpPEjrN9AhhcL4=; b=eSUpg0qLVdT9le14AFo0tYHYBcircegGYBPUaJHUh5HNNS4pPgwypEQiWH/DetXFiS94tP 476HDzzOsiKwj6FGI1ZozTF4ejeODpMiyeRde+u9Sr1YO3lpNRyFdn651YW5+p18KHtL6H TaKBc2mlW2xAauKkcjRg2aH/ZroG1CM= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=WH7j9d3a; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf04.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1705927138; a=rsa-sha256; cv=none; b=aVUtdRd00vkFU/lQ3RyFIyBupFhezF2s2saQA3ZW8aZpo6W030nBrR2H04vPJe+RMnrUEv gUZu9ZidoLjnWeyQghbctyvw+SpfdS5kJ883xFKO/jG7usBTU+OXlrgZTi8sKNK/+eiuqg 1+ypHb93qPBVG6iRf05eAZzv7Suz7Lg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705927138; 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=Ca8cxTevNKQzpblzOoDFxpwIIAtXLPpPEjrN9AhhcL4=; b=WH7j9d3aIUNO4Rdi2DfBOvueQLTP447UieVY6+PiuwqG8RKbLDw+EbIMpwxELfeFysR2y7 pmNWut2u3VsqXCxe5QjwUG4m6zHZ6TAF3wwRYfeiqBnbUuoacRk4SrZ56S2d7zBwVjJ3Jb NgllUwAlKOKGMvm4LUnixRzAM6kMXG8= 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-584-RK-uI1WhPqCXplc0tNwNjw-1; Mon, 22 Jan 2024 07:38:52 -0500 X-MC-Unique: RK-uI1WhPqCXplc0tNwNjw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 555BC85A58A; Mon, 22 Jan 2024 12:38:51 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8060F111E408; Mon, 22 Jan 2024 12:38:49 +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 00/10] netfs, afs, cifs, cachefiles, erofs: Miscellaneous fixes Date: Mon, 22 Jan 2024 12:38:33 +0000 Message-ID: <20240122123845.3822570-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Rspam-User: X-Stat-Signature: u6tzd7z4baeyxo598mqj7dopyfjg5iht X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: AB5A24001A X-HE-Tag: 1705927138-479237 X-HE-Meta: U2FsdGVkX18B7R6zUQLu8WSvKSkAB50N3bCFabE93rQw8UUJpFYQWw9Juvbk2hy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nAu8ZKPRg/4PpBLu3sWvTckOn9toWHYEkIzX3MdXQeyO5jlzTorhk1RmeDPvygKjpqW+NJZWA== 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 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 internal folio_*() functions afs: Don't use certain internal folio_*() functions cifs: Don't use certain internal 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/namei.c | 16 ++++++++++------ 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, 83 insertions(+), 46 deletions(-) Reviewed-by: Jeff Layton