]> rtime.felk.cvut.cz Git - linux-imx.git/commit
Btrfs: make sure the backref walker catches all refs to our extent
authorJosef Bacik <jbacik@fusionio.com>
Fri, 5 Jul 2013 18:03:47 +0000 (14:03 -0400)
committerChris Mason <chris.mason@fusionio.com>
Fri, 9 Aug 2013 23:30:03 +0000 (19:30 -0400)
commited8c4913da4951957bf8afc788522788881ff405
treeff74a55f70c45d2f00255b4f2d43996cf1ca35d0
parent8ca15e05e6ac2745725d2d62394cfbe4ac335e84
Btrfs: make sure the backref walker catches all refs to our extent

Because we don't mess with the offset into the extent for compressed we will
properly find both extents for this case

[extent a][extent b][rest of extent a]

but because we already added a ref for the front half we won't add the inode
information for the second half.  This causes us to leak that memory and not
print out the other offset when we do logical-resolve.  So fix this by calling
ulist_add_merge and then add our eie to the existing entry if there is one.
With this patch we get both offsets out of logical-resolve.  With this and the
other 2 patches I've sent we now pass btrfs/276 on my vm with compress-force=lzo
set.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/backref.c