artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da1d083
)
Call uvm_vnp_uncache() before VOP_RENAME().
author
mpi
<mpi@openbsd.org>
Fri, 27 May 2022 11:10:54 +0000
(11:10 +0000)
committer
mpi
<mpi@openbsd.org>
Fri, 27 May 2022 11:10:54 +0000
(11:10 +0000)
ok kettenis@
sys/nfs/nfs_serv.c
patch
|
blob
|
history
diff --git
a/sys/nfs/nfs_serv.c
b/sys/nfs/nfs_serv.c
index
4e18a83
..
424fcc2
100644
(file)
--- a/
sys/nfs/nfs_serv.c
+++ b/
sys/nfs/nfs_serv.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: nfs_serv.c,v 1.12
0 2021/03/11 13:31:35 jsg
Exp $ */
+/* $OpenBSD: nfs_serv.c,v 1.12
1 2022/05/27 11:10:54 mpi
Exp $ */
/* $NetBSD: nfs_serv.c,v 1.34 1997/05/12 23:37:12 fvdl Exp $ */
/*
@@
-1488,6
+1488,9
@@
nfsrv_rename(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
error = -1;
out:
if (!error) {
+ if (tvp) {
+ (void)uvm_vnp_uncache(tvp);
+ }
error = VOP_RENAME(fromnd.ni_dvp, fromnd.ni_vp, &fromnd.ni_cnd,
tond.ni_dvp, tond.ni_vp, &tond.ni_cnd);
} else {