]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: do not abort transaction in prealloc case
authorLiu Bo <liubo2009@cn.fujitsu.com>
Fri, 6 Jul 2012 09:31:33 +0000 (03:31 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:28:01 +0000 (16:28 -0400)
commite87143ab89378a94307ba2abd777b39f31c545b0
tree4e02d6bdb940623e11fd5b95d73a123ebc1a7de0
parent9c7bb2e09b347fcd8357377e29ef8bb439b84842
Btrfs: do not abort transaction in prealloc case

During disk balance, we prealloc new file extent for file data relocation,
but we may fail in 'no available space' case, and it leads to flipping btrfs
into readonly.

It is not necessary to bail out and abort transaction since we do have several
ways to rescue ourselves from ENOSPC case.

Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c