aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-08-20 10:05:46 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-08-20 10:05:46 +0000
commit39f88150705d4c30a477b22c1d8b18f1a138f231 (patch)
treec7b1e33531b84cd576b33fe4e4cef3eaa272f399 /sys/sys/vnode.h
parent16be9f9956a917cba1fd4c6660247163a6879f6c (diff)
downloadsrc-39f88150705d4c30a477b22c1d8b18f1a138f231.tar.gz
src-39f88150705d4c30a477b22c1d8b18f1a138f231.zip
cache: add cache_rename, a dedicated helper to use for renames
While here make both tmpfs and ufs use it. No fuctional changes.
Notes
Notes: svn path=/head/; revision=364419
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 2cb951d4ffd2..6a6cb3d7a69a 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -642,6 +642,8 @@ void cache_vnode_init(struct vnode *vp);
void cache_purge(struct vnode *vp);
void cache_purge_vgone(struct vnode *vp);
void cache_purge_negative(struct vnode *vp);
+void cache_rename(struct vnode *fdvp, struct vnode *fvp, struct vnode *tdvp,
+ struct vnode *tvp, struct componentname *fcnp, struct componentname *tcnp);
void cache_purgevfs(struct mount *mp, bool force);
int change_dir(struct vnode *vp, struct thread *td);
void cvtstat(struct stat *st, struct ostat *ost);