aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-02-01 20:38:38 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-02-01 20:38:38 +0000
commit7739d927664b408494c3793c1b07db01b16122d4 (patch)
treedef40117d107b26bb38757c6c38333358c658bbb /sys/sys/vnode.h
parent6a0086dd4d065e7763d068eae5ab83cef0b609a1 (diff)
downloadsrc-7739d927664b408494c3793c1b07db01b16122d4.tar.gz
src-7739d927664b408494c3793c1b07db01b16122d4.zip
cache: replace kern___getcwd with vn_getcwd
The previous routine was resulting in extra data copies most notably in linux_getcwd.
Notes
Notes: svn path=/head/; revision=357387
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index b43d73099058..8d983ca8a838 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -632,6 +632,7 @@ u_quad_t init_va_filerev(void);
int speedup_syncer(void);
int vn_vptocnp(struct vnode **vp, struct ucred *cred, char *buf,
size_t *buflen);
+int vn_getcwd(struct thread *td, char *buf, char **retbuf, size_t *buflen);
int vn_fullpath(struct thread *td, struct vnode *vn,
char **retbuf, char **freebuf);
int vn_fullpath_global(struct thread *td, struct vnode *vn,