]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: break out of orphan cleanup if we can't make progress
authorJosef Bacik <josef@redhat.com>
Mon, 26 Sep 2011 19:55:20 +0000 (15:55 -0400)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:26 +0000 (21:20 -0500)
commitc5edc86f7e5e96106bd1023e0897877dd49f585e
treec08597643e2d59a1b2228b3aec24d5cf8c069a09
parent198e40392d4955f3fa679b26d817711e24afc4cb
Btrfs: break out of orphan cleanup if we can't make progress

I noticed while running xfstests 83 that if we didn't have enough space to
delete our inode the orphan cleanup would just loop.  This is because it keeps
finding the same orphan item and keeps trying to kill it but can't because we
don't get an error back from iput for deleting the inode.  So keep track of the
last guy we tried to kill, if it's the same as the one we're trying to kill
currently we know we are having problems and can just error out.  I don't have a
way to test this so look hard and make sure it's right.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
(cherry picked from commit 8f6d7f4f45f18a5b669dbbf068c74b3d5be59dbf)
fs/btrfs/inode.c