commit | cf249d7eb5906de96af048e57dbe45a8f9b4f6bd | [log] [tgz] |
---|---|---|
author | Bob Peterson <rpeterso@redhat.com> | Thu Aug 11 08:57:20 2022 -0500 |
committer | Andreas Gruenbacher <agruenba@redhat.com> | Thu Sep 29 19:07:07 2022 +0200 |
tree | ba15f678cfb01e273c9da288186bdd3576a59d34 | |
parent | 74b1b10e29b1f25e1a081fa82733baea65429d53 [diff] |
gfs2: split holders_compatible off from may_grant Split off a section of may_grant() into its own function called holders_compatible(). This makes the code easier to read and understand. Replace may_grant() with holders_compatible() in demote_incompat_holders(): we know that current_gh cannot be NULL here. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>