]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: gfs2_evict_inode clarification
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 4 Oct 2024 12:10:47 +0000 (14:10 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 5 Nov 2024 11:39:29 +0000 (12:39 +0100)
commit03ff3781bf6c149554d88e7b702a3abd5e400dc0
tree476cb9bb8f00ba380366a0f6e366ca533ca9d8c3
parent70cddf16cbfbb6f7fb4d68bb62765850a921450d
gfs2: gfs2_evict_inode clarification

When function evict_should_delete() returns SHOULD_DEFER_EVICTION, gh is
never initialized, but that isn't obvious; if it did initialize gh and
then return SHOULD_DEFER_EVICTION, gfs2_evict_inode() would fail to
release it.  To clarify the code, change gfs2_evict_inode() to always
check if gh needs to be released, no matter what evict_should_delete()
returns.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/super.c