From nobody Sun Sep 24 21:46:48 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rv02d0sC0z4tWfr; Sun, 24 Sep 2023 21:46:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rv02d04Lgz4Ymf; Sun, 24 Sep 2023 21:46:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695592009; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=exRroulhWS+3yf8+DNuZolB/Ltf4WMaPMaSu10VbdfU=; b=VMwEVZTC5Y/t6USEcOuXkRWzwR+qn7mHznNwphdXIfLfLdPZ9CRD+W5dxd5r1nagdgCveI GSjLsf70fQCmgNqbOck9x6NCRPUnrtCE5pcY+Ubaqo4rOQ1ZGa4/BcUFBmQuODAHiN4nTp iQ88MnzxOBTcgbT3qdc3uZkA/Z5xzLF59ithDcFF1/zxwZ7jk0F/Q/RB/ZCrkExh34S/HR pfW5VBxeSWbUhrF+0keID4zBE89fn1E2qnPGVkTBXAMgfgdid3rz2uaUdjWwMXk+pv0MeO X1w7ZIqd2gwIO1RuFYLA6n4ouu5JZLh/hwWz89VJTlEvZiEGgH/nV7lQcqV2/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695592009; a=rsa-sha256; cv=none; b=WhMzglcpIlmljHsrFRNWfwEhCAf4zqdI1RjSzyLo+PQ0y9AP6fuGk6fzmgp7jxRZ42EBbW Bl1e/nBtv2kc0O5bW1RztrHMfZBMhWIc8+GaBL5OwdDxF71Gk3jRUfnbrHxuQGXe+jwEWm Wb/BiN/xY7R+mMIYdFgS+Z7s5lGUrxZu+B826A5MTo/ZbtZZch0/7pwKm/ae8wZhCox7Za O0Ly3Cb6Zw8c8pDnItcIKP8dqT5NgPcb0RIain5axHAj2aV5KRWCDwqMUoj5v4Prv+li2n aLUCfoia1NE32bNL9QeadGqxH/EwYG60+z2LXcEC6boEjzlMcyCnFxDEGuOItQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695592009; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=exRroulhWS+3yf8+DNuZolB/Ltf4WMaPMaSu10VbdfU=; b=jg9nV5X4hchemKWMOW7JmJwSk6skIcziF9FHdYqbWbFngQX6Lm/XDqjeXXEicXM1d/MHe2 Lgy9lnO9miq1fjh3CJgBSewjMRJVCoHqj7AOwTyZdc3dbKzOAMBhSLaq2Qoxk4BwbpwrI2 a+18vOcEDo42mcAZcnVcFFbuj2YvIxwJuzJLH1gNFmvlqepkOzt6ShurHuNt3QQqUjOy/B rrkBpY/08eBNNzaAUIrLfhDGH8h3iY1OdLN+HSRNed8BuMCZALoyJKoSzZ1O+UMLEH53nM eUw5IoacIsak/b3KmOLOA5IhdRGktGbh4SLB5/Lyw4VyNgtxxAYydOxdiVX8BQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rv02c6Hb1z13hy; Sun, 24 Sep 2023 21:46:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 38OLkmLD030399; Sun, 24 Sep 2023 21:46:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38OLkmud030396; Sun, 24 Sep 2023 21:46:48 GMT (envelope-from git) Date: Sun, 24 Sep 2023 21:46:48 GMT Message-Id: <202309242146.38OLkmud030396@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Guzik Subject: git: efc027d99c76 - releng/14.0 - ufs: restore name cache fast path lookup List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: efc027d99c76dd8d4d1a7de232142c7d54632faf Auto-Submitted: auto-generated The branch releng/14.0 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=efc027d99c76dd8d4d1a7de232142c7d54632faf commit efc027d99c76dd8d4d1a7de232142c7d54632faf Author: Mateusz Guzik AuthorDate: 2023-09-09 21:48:57 +0000 Commit: Mateusz Guzik CommitDate: 2023-09-24 21:45:27 +0000 ufs: restore name cache fast path lookup Found by: dchagin Fixes: f3c81b973897 ("ufs: add missing vop_fplookup ops") Approved by: re (gjb) (cherry picked from commit a87c6962affc2d1994d8f30806c934eb4cb7af22) (cherry picked from commit 25d8cf225ac29bb450bf52866aa6d169b9193178) --- sys/ufs/ffs/ffs_vnops.c | 6 ++++-- sys/ufs/ufs/ufs_vnops.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/ufs/ffs/ffs_vnops.c b/sys/ufs/ffs/ffs_vnops.c index 0dd64f696e0c..2b11a15c46c9 100644 --- a/sys/ufs/ffs/ffs_vnops.c +++ b/sys/ufs/ffs/ffs_vnops.c @@ -135,6 +135,8 @@ static vop_setextattr_t ffs_setextattr; static vop_vptofh_t ffs_vptofh; static vop_vput_pair_t ffs_vput_pair; +vop_fplookup_vexec_t ufs_fplookup_vexec; + /* Global vfs data structures for ufs. */ struct vop_vector ffs_vnodeops1 = { .vop_default = &ufs_vnodeops, @@ -151,7 +153,7 @@ struct vop_vector ffs_vnodeops1 = { .vop_write = ffs_write, .vop_vptofh = ffs_vptofh, .vop_vput_pair = ffs_vput_pair, - .vop_fplookup_vexec = VOP_EAGAIN, + .vop_fplookup_vexec = ufs_fplookup_vexec, .vop_fplookup_symlink = VOP_EAGAIN, }; VFS_VOP_VECTOR_REGISTER(ffs_vnodeops1); @@ -192,7 +194,7 @@ struct vop_vector ffs_vnodeops2 = { .vop_setextattr = ffs_setextattr, .vop_vptofh = ffs_vptofh, .vop_vput_pair = ffs_vput_pair, - .vop_fplookup_vexec = VOP_EAGAIN, + .vop_fplookup_vexec = ufs_fplookup_vexec, .vop_fplookup_symlink = VOP_EAGAIN, }; VFS_VOP_VECTOR_REGISTER(ffs_vnodeops2); diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index a7d5e8ba96fc..79cca75fc563 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -101,7 +101,7 @@ VFS_SMR_DECLARE; #include static vop_accessx_t ufs_accessx; -static vop_fplookup_vexec_t ufs_fplookup_vexec; +vop_fplookup_vexec_t ufs_fplookup_vexec; static int ufs_chmod(struct vnode *, int, struct ucred *, struct thread *); static int ufs_chown(struct vnode *, uid_t, gid_t, struct ucred *, struct thread *); @@ -475,7 +475,7 @@ ufs_accessx( * VOP_FPLOOKUP_VEXEC routines are subject to special circumstances, see * the comment above cache_fplookup for details. */ -static int +int ufs_fplookup_vexec( struct vop_fplookup_vexec_args /* { struct vnode *a_vp;