From nobody Sat Sep 09 21:50:57 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 4RjmrL1kX9z4sy2b; Sat, 9 Sep 2023 21:50:58 +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 4RjmrL14MGz4QGT; Sat, 9 Sep 2023 21:50:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694296258; 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=VB5ssB65fQ24XC4Tf5DaVh28twdI4zKexMZLqkeR4Wg=; b=IbRzrvvI+EdkKrEPByLOstrqsfX5y3vXKDnVblIHb3LuRK2FwTwGDR7unB6Tksb6pM72Fm WOSnMuPL1pqjWCrsUPCMvFNDcujuDcgQvR/whDa4UQu01JZo/oFe5HS1PoCZ2n9EksC3eG 5a33HRnkaBJdf6wmpcf4zwXeHaaTtLim081yslMk95rFtjCDLGReoyIoj4bO3ZLMA5TIRG eTaHJtN8PZz9ct2XoKmLlyun2rTJe8+gJfRLLhuUrtMaH0Lp6UR6niZHbigMyl1XFICtOu DrEACN+SJyocdI5i5PHrEv2EyIAwTY9CkZ9q7NDXvQ1fix/5wQN0wE7X0Ox5/w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694296258; a=rsa-sha256; cv=none; b=tFbXzY5gMQN1EbSjsmSO9YLUUWzw0xKXvw3Bw4v6sEesDk9H5p1OMAyD/ETuXkQJShcKZ2 YY/82kR4ebwHc/8oPLwJg/v+80uks2xA3J3A4ZdBsUNOnby3nF+UJEtsQyzHUwXSNR5FN6 NvdybuCD88IfSA1y6gHTPKPKM8jO8nZzo9koWJ+Cw9QNDnonkhqZWc8TKdFz2Y5hIFiYmW zWxMbNXhCvV4/Pj71F8+rekzV/GzJWsmNhL5Y1nfCwlmE6LFL1GUpKH6SSJGbiR6J5lP0y N3CXo3D+UEjLjfx1U4XkqTY6TIE0PsZFlpt+rPDCwpGX0KWJyH+72AZmKaRFfA== 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=1694296258; 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=VB5ssB65fQ24XC4Tf5DaVh28twdI4zKexMZLqkeR4Wg=; b=hmf/RbwJl7fNEDjK96lS43Tyu4/9SsQT+a8zdzafI6ZCegkFpU64sx6T3oN6/a/P654xWL V8zeJSPnoGfCH9yIgHdVoIcNWmC93+OTcp06mtzaSJjD0tLQ+g/2Eqg5EjZJIlsfL4Y70J 83D1TUhuNAI70UxCN13YJqKh6PmQ9CLqxAu504WNO4SOEjSnG/SmhEAUMVPO1xPU4N35B4 c/2VfEeBdhh1KrZx3ASH6OXDtOsz1s7iBAFvQ6v3TeP4YYSAHXtdf/lDB8dDaVPVTSZP1o er8SYtVqNs/k/GDE1z+HWvtiNlhbEKsfpd8ud7zehBvav0ikwmLw0fCdCWXhbg== 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 4RjmrL08mZzh9j; Sat, 9 Sep 2023 21:50:58 +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 389Lovtx091946; Sat, 9 Sep 2023 21:50:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 389LovR0091943; Sat, 9 Sep 2023 21:50:57 GMT (envelope-from git) Date: Sat, 9 Sep 2023 21:50:57 GMT Message-Id: <202309092150.389LovR0091943@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: a87c6962affc - main - 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/main X-Git-Reftype: branch X-Git-Commit: a87c6962affc2d1994d8f30806c934eb4cb7af22 Auto-Submitted: auto-generated The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=a87c6962affc2d1994d8f30806c934eb4cb7af22 commit a87c6962affc2d1994d8f30806c934eb4cb7af22 Author: Mateusz Guzik AuthorDate: 2023-09-09 21:48:57 +0000 Commit: Mateusz Guzik CommitDate: 2023-09-09 21:48:57 +0000 ufs: restore name cache fast path lookup Found by: dchagin Fixes: f3c81b973897 ("ufs: add missing vop_fplookup ops") --- 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;