Commit 7c6f714d authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Fix unlinked inode cleanup



Before commit f0e56edc ("gfs2: Split the two kinds of glock "delete"
work"), function delete_work_func() was used to trigger the eviction of
in-memory inodes from remote as well as deleting unlinked inodes at a
later point.  These two kinds of work were then split into two kinds of
work, and the two places in the code were deferred deletion of inodes is
required accidentally ended up queuing the wrong kind of work.  This
caused unlinked inodes to be left behind, which could in the worst case
fill up filesystems and require a filesystem check to recover.

Fix that by queuing the right kind of work in try_rgrp_unlink() and
gfs2_drop_inode().

Fixes: f0e56edc ("gfs2: Split the two kinds of glock "delete" work")
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 160bc955
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment