gfs2: simplify the logic in gfs2_evict_inode
authorBob Peterson <rpeterso@redhat.com>
Wed, 16 Sep 2020 13:50:44 +0000 (08:50 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 14 Oct 2020 21:54:42 +0000 (23:54 +0200)
commit0a0d9f55c211d7a03b8ec5ad2d8f5b3062b4387c
tree9aacf05e4128a3757c7c4ffb01528bbd9091fffc
parentd90be6ab9ad76d4f5492e15b73b9cca5cbb03f91
gfs2: simplify the logic in gfs2_evict_inode

Now that we've factored out the deleted and undeleted dinode cases
in gfs2_evict_inode, we can greatly simplify the logic. Now the
function is easy to read and understand.

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