• Andreas Gruenbacher's avatar
    gfs2: Clean up function may_grant · 61444649
    Andreas Gruenbacher authored
    Pass the first current glock holder into function may_grant and
    deobfuscate the logic there.
    
    While at it, switch from BUG_ON to GLOCK_BUG_ON in may_grant.  To make
    that build cleanly, de-constify the may_grant arguments.
    
    We're now using function find_first_holder in do_promote, so move the
    function's definition above do_promote.
    Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
    61444649
glock.c 65.7 KB