gfs2: factor evict_unlinked_inode out of gfs2_evict_inode
authorBob Peterson <rpeterso@redhat.com>
Fri, 11 Sep 2020 14:29:25 +0000 (09:29 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 14 Oct 2020 21:54:41 +0000 (23:54 +0200)
commit6e7e9a505571db3edc926f4bc972c7ed3da29a9d
tree21922f3adca551a312139cac129d269b4616ac33
parent23d828fc3f1e309bbc23bab817e6b5c40b06d9b9
gfs2: factor evict_unlinked_inode out of gfs2_evict_inode

Function gfs2_evict_inode is way too big, complex and unreadable. This
is a baby step toward breaking it apart to be more readable. It factors
out the portion that deletes the online bits for a dinode that is
unlinked and needs to be deleted. A future patch will factor out more.
(If I factor out too much, the patch itself becomes unreadable).

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