HomeFreeBSD

zfs: Merge https://github.com/openzfs/zfs/pull/14739

Description

zfs: Merge https://github.com/openzfs/zfs/pull/14739

The zfs_log_clone_range() function is never called from the
zfs_clone_range_replay() function, so I assumed it is safe to assert
that zil_replaying() is never TRUE here. It turns out zil_replaying()
also returns TRUE when the sync property is set to disabled.

Fix the problem by just returning if zil_replaying() returns TRUE.

Reported by: Florian Smeets
Signed-off-by: Pawel Jakub Dawidek pawel@dawidek.net

Approved by: oshogbo, mm

Details

Provenance
pjdAuthored on Apr 17 2023, 9:22 AM
Parents
rGe0bb19992556: zfs: cherry-pick openzfs/zfs@c71fe7164
Branches
Unknown
Tags
Unknown