]> git.ipfire.org Git - thirdparty/linux.git/commit
gfs2: minor evict fix
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 3 Mar 2025 10:28:23 +0000 (11:28 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 10 Mar 2025 17:15:38 +0000 (18:15 +0100)
commite9e38ed7250f8ef6b2928216156c09df8b4834b3
tree21f85e2ec9665aedbc4ed8841fe0d34aa29f9805
parent9136cad723ec3e5ab5ca85a839f151abf1c9a106
gfs2: minor evict fix

In evict_should_delete(), when gfs2_upgrade_iopen_glock() fails, we
detach the iopen glock from the inode without calling
glock_clear_object().  This leads to a warning in glock_set_object()
when the same inode is recreated and the glock is reused.
Fix that by only detaching the iopen glock in gfs2_evict_inode().

In addition, remove the dequeue code from evict_should_delete(); we
already perform a conditional dequeue in gfs2_evict_inode().

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