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: 19257 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp2544456dyb; Mon, 22 Jan 2024 04:47:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlTgRBCeKwUGxH1jTdAP22jLyCRj4nqKd9VZyueEhMrCi/29ss7UfW9G5YRrkCpRU8ScAh X-Received: by 2002:a17:90b:4d86:b0:290:5c7b:81b6 with SMTP id oj6-20020a17090b4d8600b002905c7b81b6mr1494883pjb.33.1705927671227; Mon, 22 Jan 2024 04:47:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705927671; cv=pass; d=google.com; s=arc-20160816; b=kE0II1NFO19VLblsvaUUMa1QBDxkmpclYVIenNFuiyVgz7A3xwO3mm8hfWX8p+SvUL L9/jm1KLNxdClQgZB33WyAEZsm4lADjBDkSg+p2iL4YuBlkwatGIkLJ9MeWRwCzfTtut 64ALhHI6TQgCJ5pD8Cn2y0X+DlU99ul8MUYlEpp8ivWfVcH5EiLaLj8f5df8baaBb5yV MrkBLRIRZcn0H3jXwuzhQU15OKc91rt0z+FL3O6ivBFdN2zwesSKZiS8UC92NONZ5s7h 2XoXmOIFYjtt2HTWlQfmQXEEXGsJ6cq4stTs+fPtclOsJRMZaEJcywnZxaqHJTBWsxtl frzg== 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=Ca8cxTevNKQzpblzOoDFxpwIIAtXLPpPEjrN9AhhcL4=; fh=Tva/nXHuyROwY9ahRsoTivRGzGustfEnjShz7AiM/lI=; b=kKKvtbcGnY7I0c5AhtqGn/5ulnP9oEyekFm5NPW367/smv8p9sunvjQE1moULFLZMT cMISNhDTsBImepBcpfAodVBtDgElXiZ0Yrbpzk2V2Szrf6DJAysCITn4cdhHGQB9xCPC /kyuGO62TLG1v+nIRu1xP7+QKkWZp8WmYz597QoCZDE8LRm6HX5KrirHUawT8mxdvyV7 xhyJ/z8UKBmUtMa2Vx9NR8g9/g4qjCT1VWa+RgVyyHanGI3iKAz78nCXK0eyaT6sGuY+ JVsFxP2pGDK2YeITNqCzodYYZGdXHXjt7w2wc7ry954eVAtrZqlRUUsKpJExieWjHjDl 499A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RKgKdcHr; 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-33029-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33029-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c8-20020a17090ad90800b00290b24f3e97si810035pjv.134.2024.01.22.04.47.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 04:47:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33029-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RKgKdcHr; 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-33029-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33029-ouuuleilei=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 D7179293933 for ; Mon, 22 Jan 2024 12:40:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D87763D0C8; Mon, 22 Jan 2024 12:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="RKgKdcHr" 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 6A9A13C694 for ; Mon, 22 Jan 2024 12:38:56 +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=1705927140; cv=none; b=tjbioxl+xYULc3MxJz/7W1oMw/lxIH/HOoEyVzfO7+4/DzDcB45pkeugmhEewCuXXwnRJHnQVjzIEt4zY8Je1QUESjeS5Kix/+Y6vsUArT5OJGG2SFx01GAvp4AD7oa6G2yT0w98eJl87HaA52CflK4TCxMWeJu4xtEYwfH12dY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705927140; c=relaxed/simple; bh=zeo2jxGPanKotKy5hjByOmMTkO1G/PEVRSjvkrtHUsg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B0Hqii9C3GzuT4UNwA+AnNNmph41KrbbEXIHXmFzrmyVLEyQBsnBAGHh5RxiEaxpYFDbKipv+Z8DwbbX+hRS2+rO10sR6ePEAm64/JLAwWAKx5s3UJ/r5+bVomxyAD+YjZlvIhRskp4yh3v4OEGeKiC0gTA/KRFnkVu56bFns/o= 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=RKgKdcHr; arc=none smtp.client-ip=170.10.133.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=1705927135; 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=RKgKdcHrFyu019r76hlVwfa3nS8Efh+Iu9Hno3MYGhbCAAA5llbSV9qIJ/Z+pjH9vDAVkf vgjFAz8xYHwMs8fqoGPwqzVbtxjrPBUUYjsSqGQqGHMyV1gq5jPw7LPr3MqcB7aH670rqA jjfwobX9tc4HmBsolSaf28kjsAt5gXs= 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788794813530906328 X-GMAIL-MSGID: 1788794813530906328 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