• Andreas Gruenbacher's avatar
    gfs2: Invert the GLF_INITIAL flag · c8758ad0
    Andreas Gruenbacher authored
    Invert the meaning of the GLF_INITIAL flag: right now, when GLF_INITIAL
    is set, a DLM lock exists and we have a valid identifier for it; when
    GLF_INITIAL is cleared, no DLM lock exists (yet).  This is confusing.
    In addition, it makes more sense to highlight the exceptional case
    (i.e., no DLM lock exists yet) in glock dumps and trace points than to
    highlight the common case.
    
    To avoid confusion between the "old" and the "new" meaning of the flag,
    use 'a' instead of 'I' to represent the flag.
    
    For improved code consistency, check if the GLF_INITIAL flag is cleared
    to determine whether a DLM lock exists instead of checking if the lock
    identifier is non-zero.
    
    Document what the flag is used for.
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    c8758ad0
lock_dlm.c 41.6 KB