]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix unnecessary warning when the fragments make the space alloc fail
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 12 Sep 2012 05:27:35 +0000 (23:27 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 1 Oct 2012 19:19:20 +0000 (15:19 -0400)
commit99f3cd202976f125d7dd632b983dc16f518e1816
tree0dc45b716f2789ae662e0002a3bd4f6f8d615f3a
parentbd96c9f380fafd61c3a637247d8917fa8908fa61
Btrfs: fix unnecessary warning when the fragments make the space alloc fail

When we wrote some data by compress mode into a btrfs filesystem which was full
of the fragments, the kernel will report:
BTRFS warning (device xxx): Aborting unused transaction.

The reason is:
We can not find a long enough free space to store the compressed data because
of the fragmentary free space, and the compressed data can not be splited,
so the kernel outputed the above message.

In fact, btrfs can deal with this problem very well: it fall back to
uncompressed IO, split the uncompressed data into small ones, and then
store them into to the fragmentary free space. So we shouldn't output the
above warning message.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
fs/btrfs/inode.c