aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric van Gyzen <vangyzen@FreeBSD.org>2026-02-25 16:26:06 +0000
committerEric van Gyzen <vangyzen@FreeBSD.org>2026-02-25 16:44:38 +0000
commit722fbfef0abb4de31fb91fd35f9b85fd534725c4 (patch)
tree7ff618520d9542b165561d80df920c396cfd5f2c
parent87ca74de89e0ae96774674f7ae14d303fad5b780 (diff)
ffs snapshots: pass valid args to vn_start_write
If the initial no-wait vn_start_write fails, we pass the old PCATCH flag to the following sleepable vn_start_write. Following a75d1ddd74, that flag should be V_PCATCH. Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D55512
-rw-r--r--sys/ufs/ffs/ffs_snapshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_snapshot.c b/sys/ufs/ffs/ffs_snapshot.c
index 31823458ed8a..a024cbf84283 100644
--- a/sys/ufs/ffs/ffs_snapshot.c
+++ b/sys/ufs/ffs/ffs_snapshot.c
@@ -282,7 +282,7 @@ restart:
NDFREE_PNBUF(&nd);
vput(nd.ni_dvp);
if ((error = vn_start_write(NULL, &wrtmp,
- V_XSLEEP | PCATCH)) != 0)
+ V_XSLEEP | V_PCATCH)) != 0)
return (error);
goto restart;
}