diff options
author | Mateusz Guzik <[email protected]> | 2022-09-21 00:22:32 +0200 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2022-09-28 10:35:13 -0700 |
commit | 63d4838b4ac5557510db70aff334ec7caa96114c (patch) | |
tree | a780dedeee98ee095c0a038b3dd4dca38f63d57c /module | |
parent | eec942cc54652254a39f36fb12976bcc3b4a2706 (diff) |
FreeBSD: handle V_PCATCH
See https://cgit.FreeBSD.org/src/commit/?id=a75d1ddd74312f5dd79bc1e965f7077679659f2e
Reviewed-by: Ryan Moeller <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Mateusz Guzik <[email protected]>
Closes #13910
Diffstat (limited to 'module')
-rw-r--r-- | module/os/freebsd/zfs/zfs_file_os.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/module/os/freebsd/zfs/zfs_file_os.c b/module/os/freebsd/zfs/zfs_file_os.c index fd86a7541..60c9ff058 100644 --- a/module/os/freebsd/zfs/zfs_file_os.c +++ b/module/os/freebsd/zfs/zfs_file_os.c @@ -226,7 +226,11 @@ zfs_vop_fsync(vnode_t *vp) struct mount *mp; int error; +#if __FreeBSD_version < 1400068 if ((error = vn_start_write(vp, &mp, V_WAIT | PCATCH)) != 0) +#else + if ((error = vn_start_write(vp, &mp, V_WAIT | V_PCATCH)) != 0) +#endif goto drop; vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); error = VOP_FSYNC(vp, MNT_WAIT, curthread); |