diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2022-12-21 02:52:51 +0300 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2023-02-01 00:40:24 +0300 |
commit | f0e56edc2ec7a40f4e94590172f21317baafb196 (patch) | |
tree | 6dcb9d48859f32b6a4ba590d4b0b995860f9daaa /fs/gfs2/incore.h | |
parent | 0247f4e959c01f6ce1fcc2091c571f8c0742a065 (diff) | |
download | linux-f0e56edc2ec7a40f4e94590172f21317baafb196.tar.xz |
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>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 6e8a5f2d6b49..9b380125eb78 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -330,6 +330,8 @@ enum { GLF_OBJECT = 14, /* Used only for tracing */ GLF_BLOCKING = 15, GLF_FREEING = 16, /* Wait for glock to be freed */ + GLF_TRY_TO_EVICT = 17, /* iopen glocks only */ + GLF_VERIFY_EVICT = 18, /* iopen glocks only */ }; struct gfs2_glock { |