Message ID | 20241108173236.1382366-2-dhowells@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 3D0A8D64072 for <linux-mm@archiver.kernel.org>; Fri, 8 Nov 2024 17:33:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C8A1F6B0099; Fri, 8 Nov 2024 12:33:03 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C3A8A6B009A; Fri, 8 Nov 2024 12:33:03 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AB37E6B009B; Fri, 8 Nov 2024 12:33:03 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8BA7F6B0099 for <linux-mm@kvack.org>; Fri, 8 Nov 2024 12:33:03 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 12F78ABD5D for <linux-mm@kvack.org>; Fri, 8 Nov 2024 17:33:03 +0000 (UTC) X-FDA: 82763622396.12.CE28F20 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf06.hostedemail.com (Postfix) with ESMTP id DE57118000B for <linux-mm@kvack.org>; Fri, 8 Nov 2024 17:32:34 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=UEKdprW5; spf=pass (imf06.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731087012; 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:in-reply-to:references:references:dkim-signature; bh=zFfHFGyfFLnfH39ds9xcldOHx5zC/fcdWITNBPuGcyY=; b=pzh3AOBP+M6PNXDD2fEaAsmuxeeGv6eqfLrIeLAfmsYnJjuUINJ2zMHITnPL8qJWFS4L60 nut/40NwukNuQO6OwHGwAxMqEv4OTy5dAQKwk2Ca/fc4mTka7/5CKwdiz1wXnd7FTfuQag P1u5PTDS7RUtlOAxg8MRdLRDZipJK8M= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=UEKdprW5; spf=pass (imf06.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1731087012; a=rsa-sha256; cv=none; b=oG+/ZnjxW4zeKMSTlSviikQcIq89hwCe5mdUuqiI/LlGWJEOL+sR2hKgVQGPNj+MxkktyA kr10k8PsFEJmM3udR249twaZ/+x+xm5cJTxl7/Vu5F3p3OM0TLpd55p7UzoA6aa7+p9AR+ k9Jv8nWfhJJNDgeKRqoCrsa+Os7SJKc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731087180; 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: in-reply-to:in-reply-to:references:references; bh=zFfHFGyfFLnfH39ds9xcldOHx5zC/fcdWITNBPuGcyY=; b=UEKdprW5ug5Vc6F1Ao/+bjP5b12YB1Z4TegHOEUMmwMiq1iuoIzRMUmZMAa9TZyUdHw2I2 cgwAV24H/mJTB5NKHCO+ka9bkpoLR8QRtMYUmEcDvtGCXhH/3o8AMNOrP092gJvT4N5qEP 9qYeJ046lDbu3N9gyeZyPvcfDhYCSf8= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-561-ajo1qGtkPo6YZOFPGawkUA-1; Fri, 08 Nov 2024 12:32:56 -0500 X-MC-Unique: ajo1qGtkPo6YZOFPGawkUA-1 X-Mimecast-MFC-AGG-ID: ajo1qGtkPo6YZOFPGawkUA Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3915B1955F69; Fri, 8 Nov 2024 17:32:53 +0000 (UTC) Received: from warthog.procyon.org.uk.com (unknown [10.42.28.231]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E54FC195E480; Fri, 8 Nov 2024 17:32:46 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Christian Brauner <christian@brauner.io>, Steve French <smfrench@gmail.com>, Matthew Wilcox <willy@infradead.org> Cc: David Howells <dhowells@redhat.com>, Jeff Layton <jlayton@kernel.org>, Gao Xiang <hsiangkao@linux.alibaba.com>, Dominique Martinet <asmadeus@codewreck.org>, Marc Dionne <marc.dionne@auristor.com>, Paulo Alcantara <pc@manguebit.com>, Shyam Prasad N <sprasad@microsoft.com>, Tom Talpey <tom@talpey.com>, Eric Van Hensbergen <ericvh@kernel.org>, Ilya Dryomov <idryomov@gmail.com>, 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, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada <masahiroy@kernel.org> Subject: [PATCH v4 01/33] kheaders: Ignore silly-rename files Date: Fri, 8 Nov 2024 17:32:02 +0000 Message-ID: <20241108173236.1382366-2-dhowells@redhat.com> In-Reply-To: <20241108173236.1382366-1-dhowells@redhat.com> References: <20241108173236.1382366-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: DE57118000B X-Stat-Signature: idd4k7um37o5e5yuzfxo4hd49q3xaix6 X-Rspam-User: X-HE-Tag: 1731087154-561948 X-HE-Meta: U2FsdGVkX19JjFiFibjITF71hvIRyiqb2Pq5gc3p7Lc67tT2MpRkbBMAu8EBxuYmtARN8FyVqCCMbvo7f3M3qDgF+MYF7Oy6LEevHKmiT2tE6f43U//Py5vrJ3a6lsR8/yQGnl+kfRQDYVx+FU5/i7Nhy+VOAL/L1F4BexVwZKiNhIkigqB+CNdj44ZPVtk1nMtY/8IfwsLdgEGg56mQbTxurj8Y5Ee/tzjLz4OrdRSfVnBz9so+y/eLG5CojnZOsRZlUfXrwTDwFhIpeeHpjsvPUVl05MIj6agNrZPCTueRkCMbf34k+UlCil7M/mEqeOK2mZosMzRNYXTbBM+0vrPGuNpGVyLnUlhr570zqN1WxvIzy/YnkmhbnZNNSwG+VohFeO2imuIqfd+tJz2iGRLOCyF6Wdba4ff3eWO9bJF5wSFIbCCFhpPyRjEao8B5TeGfn/6tzyue3GULM3ggDjRhm6ZbI48sHVQU4qP6M1ARVDGuyKJU5Qa2v51RvmrmrgjGcW3wkRARagrc1CArgSm36zRjoLsmdrmujOv+YqW0f68GTkoCwcOUrCyIsCv3opa5EPZUfJXj93nN06dfTh6QZP690laz5FaayHppZB6mNauHdHibAC3kfq7sf+auwG4eMLZSH8N5w/uJ36nM88ucHAOluH5g9iGJ9dv2Fry+0ytoY1rJf1skUioZ+dyCshPUFSC1Fel/qm9jt491MxBTU6bhXtRwiYvK2vbqKJ/mnA5ZIUwD2E0gNIGXv6zjPDPJRJqS9dyjVF8hkgVvcDXdg+qGHFswj1uj9nTi/oJuFI81W6eUufUfsN6wcybnLVfy5ywsRpHMQUCJYXzuv/Tj2jZp6bnoZ5mie4DuYKwQQSLLPAjfpR+8VOxnsHTE9hH152Fg20U55bYQ/muIilUSR63/T55xL4f7w2Iq1sEQ6/wT5o2hnf0ECdu5ziIuX85Hj2LPg+yvIIFvthm l2nobimh WSvDSeYCcQuBjSIsX+6g3r9LFyrARppUzXs+by/jAPGzRvYZEjWa6+etSGIBrNSfMXDsHzfBeOaQ0yWeuOg1PCqvYPzO0xxQjJOpEWIojYtExM7DuX8943ofRJoyYYCuR7p/7bH4MQi+3PLoJlLudibvaYI2/kRXsGtOFM4Nlj6iLriyTH14id7Kqb5ejLzcF7vN9EBOLypIbLwnPSgrR8iMZkx9RExCzJeLcaH7tYRVACp4l5li7l9S1trOpg4K6ObAbgzFstGy7bpGtNRt4dr1CDUc2eu3KYz4SONNl6DXG9RQ5gu3riyYaPYKkooBw8SV2S/rmehgYpGIOp5OVHtj6ZveH5Wy2spW2B9TELwhvSwtQHS0dmFPbThZt354nxr2qY7OIlLqRI75PcD8kwf6/i/UXwUdcWTeiIL27ts0YOCTVmksyGUvpbk5/x27kfWaUfwHGLY35gaVrlGStpkpALg== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
netfs: Read performance improvements and "single-blob" support
|
expand
|
diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh index 383fd43ac612..7e1340da5aca 100755 --- a/kernel/gen_kheaders.sh +++ b/kernel/gen_kheaders.sh @@ -89,6 +89,7 @@ find $cpio_dir -type f -print0 | # Create archive and try to normalize metadata for reproducibility. tar "${KBUILD_BUILD_TIMESTAMP:+--mtime=$KBUILD_BUILD_TIMESTAMP}" \ + --exclude=".__afs*" --exclude=".nfs*" \ --owner=0 --group=0 --sort=name --numeric-owner --mode=u=rw,go=r,a+X \ -I $XZ -cf $tarfile -C $cpio_dir/ . > /dev/null
Tell tar to ignore silly-rename files (".__afs*" and ".nfs*") when building the header archive. These occur when a file that is open is unlinked locally, but hasn't yet been closed. Such files are visible to the user via the getdents() syscall and so programs may want to do things with them. During the kernel build, such files may be made during the processing of header files and the cleanup may get deferred by fput() which may result in tar seeing these files when it reads the directory, but they may have disappeared by the time it tries to open them, causing tar to fail with an error. Further, we don't want to include them in the tarball if they still exist. With CONFIG_HEADERS_INSTALL=y, something like the following may be seen: find: './kernel/.tmp_cpio_dir/include/dt-bindings/reset/.__afs2080': No such file or directory tar: ./include/linux/greybus/.__afs3C95: File removed before we read it The find warning doesn't seem to cause a problem. Fix this by telling tar when called from in gen_kheaders.sh to exclude such files. This only affects afs and nfs; cifs uses the Windows Hidden attribute to prevent the file from being seen. Signed-off-by: David Howells <dhowells@redhat.com> cc: Masahiro Yamada <masahiroy@kernel.org> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org cc: linux-nfs@vger.kernel.org cc: linux-kernel@vger.kernel.org --- kernel/gen_kheaders.sh | 1 + 1 file changed, 1 insertion(+)