]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: allow compressed extents to be merged during defragment
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 2 Aug 2013 08:30:40 +0000 (16:30 +0800)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:52 +0000 (08:04 -0400)
commitc2d04bc5eb6ee392331ffaf5fb171add94adfab0
tree9124d5f8880a24c1b7ea125a6f6ef2f608244165
parent0bd32a73b6f2e777ddea34da1368d605c13db12e
Btrfs: allow compressed extents to be merged during defragment

The rule originally comes from nocow writing, but snapshot-aware
defrag is a different case, the extent has been writen and we're
not going to change the extent but add a reference on the data.

So we're able to allow such compressed extents to be merged into
one bigger extent if they're pointing to the same data.

Reviewed-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/inode.c