HomeFreeBSD

Rework MOUNTED/DOING SOFTDEP/SUJ macros

Description

Rework MOUNTED/DOING SOFTDEP/SUJ macros

Now MNT_SOFTDEP indicates that SU are active in any variant +-J, and
SU+J is indicated by MNT_SOFTDEP | MNT_SUJ combination. The reason is
that unmount will be able to easily hide SU from other operations by
clearing MNT_SOFTDEP while keeping the record of the active journal.

Reviewed by: mckusick
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D29178

Details

Provenance
kibAuthored on Mar 3 2021, 5:43 PM
Reviewer
mckusick
Differential Revision
D29178: UFS SU: handle races on remounts rw<->ro
Parents
rG81cdb19e04e5: ffs softdep: clear ump->um_softdep on softdep_unmount()
Branches
Unknown
Tags
Unknown