mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
ufs: restore name cache fast path lookup
Found by: dchagin
Fixes: f3c81b9738
("ufs: add missing vop_fplookup ops")
This commit is contained in:
parent
ef545fe7ba
commit
a87c6962af
|
@ -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);
|
||||
|
|
|
@ -101,7 +101,7 @@ VFS_SMR_DECLARE;
|
|||
#include <ufs/ffs/ffs_extern.h>
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue