]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gfs2: skip if we cannot defer delete
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 6 Mar 2025 21:13:28 +0000 (22:13 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Mon, 10 Mar 2025 17:15:38 +0000 (18:15 +0100)
commit41a8e04c94b868023986ec35ca06756e31e1e229
tree84aa5984c7eeb71d32412a8f7f8a718576b759b2
parent79fe790a32a82a3e2d0afd28b294b71efea0d5b1
gfs2: skip if we cannot defer delete

In gfs2_evict_inode(), in the unlikely case that we cannot defer
deleting the inode, it is not safe to fall back to deleting the inode;
the only valid choice we have is to skip the delete.

In addition, in evict_should_delete(), if we cannot lock the inode glock
exclusively, we are in a bad enough state that skipping the delete is
likely a better choice than trying to recover from the failure later.

Fixes: c5b7a2400edc ("gfs2: Only defer deletes when we have an iopen glock")
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/super.c