gfs2: Split the two kinds of glock "delete" work
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 20 Dec 2022 23:52:51 +0000 (00:52 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 31 Jan 2023 21:40:24 +0000 (22:40 +0100)
commitf0e56edc2ec7a40f4e94590172f21317baafb196
tree6dcb9d48859f32b6a4ba590d4b0b995860f9daaa
parent0247f4e959c01f6ce1fcc2091c571f8c0742a065
gfs2: Split the two kinds of glock "delete" work

Function delete_work_func() is used for two purposes:

 * to immediately try to evict the glock's inode, and

 * to verify after a little while that the inode has been deleted as
   expected, and didn't just get skipped.

These two operations are not separated very well, so introduce two new
glock flags to improved that.  Split gfs2_queue_delete_work() into
gfs2_queue_try_to_evict and gfs2_queue_verify_evict().

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c
fs/gfs2/glock.h
fs/gfs2/glops.c
fs/gfs2/incore.h
fs/gfs2/rgrp.c
fs/gfs2/super.c