HomeFreeBSD

Fix atomic_clear_long_excl wrong return

Description

Fix atomic_clear_long_excl wrong return

When clearing a bit, we should check whether that bit is 0.
Note atomic_clear_long_excl is not used.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Liu Qing <winglq@gmail.com>
Closes #10526

Details

Provenance
winglq <winglq@gmail.com>Authored on Jul 6 2020, 6:46 PM
GitHub <noreply@github.com>Committed on Jul 6 2020, 6:46 PM
Parents
rG8a3d9186ba0c: Update zfs_freebsd_need_inactive to fix mmapped writes
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGa4b0a74c7f34: Fix atomic_clear_long_excl wrong return (authored by winglq <winglq@gmail.com>).Jul 6 2020, 6:46 PM