git: d139cab8d13b - stable/13 - nfsclient copy_file_range(): flush dst vnode data
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Jan 2024 12:02:47 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=d139cab8d13b83b90872f6ca5dc53890c85826a9
commit d139cab8d13b83b90872f6ca5dc53890c85826a9
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-12-29 23:22:40 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-01-11 16:47:51 +0000
nfsclient copy_file_range(): flush dst vnode data
PR: 276002
(cherry picked from commit 7dae1467d72ae1f5c8f7be0f7444da23a457d98b)
---
sys/fs/nfsclient/nfs_clvnops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/fs/nfsclient/nfs_clvnops.c b/sys/fs/nfsclient/nfs_clvnops.c
index 642963694a0a..443d8bc6d56b 100644
--- a/sys/fs/nfsclient/nfs_clvnops.c
+++ b/sys/fs/nfsclient/nfs_clvnops.c
@@ -3881,7 +3881,7 @@ generic_copy:
if (error == 0)
error = ncl_flush(invp, MNT_WAIT, curthread, 1, 0);
if (error == 0)
- error = ncl_flush(outvp, MNT_WAIT, curthread, 1, 0);
+ error = ncl_vinvalbuf(outvp, V_SAVE, curthread, 0);
/* Do the actual NFSv4.2 RPC. */
ret = ret2 = 0;