]> 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)
commit6e41f3ee5e1084cbaccdc9314e70289e791235b1
tree023c77f4f81ef42142f7cea56cbf9da9e6dd80fe
parentd10c47b517755ee783c2d2601b324612b02c754f
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