gfs2: further simplify gfs2_evict_inode with new func evict_should_delete
authorBob Peterson <rpeterso@redhat.com>
Fri, 11 Sep 2020 15:30:26 +0000 (10:30 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 14 Oct 2020 21:54:42 +0000 (23:54 +0200)
commit53dbc27eb18999619766ff994d2b33c4655c5588
tree69f4cb9f1ae56ef0a6073d55cb7b09a2b18c78c5
parent6e7e9a505571db3edc926f4bc972c7ed3da29a9d
gfs2: further simplify gfs2_evict_inode with new func evict_should_delete

This patch further simplifies function gfs2_evict_inode() by adding a
new function evict_should_delete. The function may also lock the inode
glock.

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