]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd33a37296c427bdba0ed2cc19cd7005cf5c7143b
tree023c77f4f81ef42142f7cea56cbf9da9e6dd80fe
parent1c3793d8f56c80ca1963d3bf02d5784d62dbb413
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