]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit116e0024c453dfdfacc9278f485dabc9c63a4ac4
tree9124d5f8880a24c1b7ea125a6f6ef2f608244165
parent8b87dc17fbc7443bf4c6c096279c35e89fb51326
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