Btrfs: fix lots of orphan inodes when the space is not enough
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 19 Dec 2012 06:59:51 +0000 (06:59 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 14:36:39 +0000 (09:36 -0500)
commit0e8c36a9fd8169a8b96c2ddc8446894bcd07b6b1
tree023c77f4f81ef42142f7cea56cbf9da9e6dd80fe
parent4ea41ce07d8aed9e64c546abf341aea44e782e64
Btrfs: fix lots of orphan inodes when the space is not enough

We're running into having 50-100 orphans left over with xfstests 83
because of ENOSPC when trying to start the transaction for the inode update.
But in fact, it makes no sense in updating the inode for the new size while
we're deleting the stupid thing. This patch fixes this problem.

Reported-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/delayed-inode.c
fs/btrfs/delayed-inode.h
fs/btrfs/inode.c