]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: merge inode_list in __merge_refs
authorAlexander Block <ablock84@googlemail.com>
Thu, 8 Nov 2012 21:27:24 +0000 (21:27 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:27 +0000 (17:15 -0500)
commit1b65f177e37a2ba0397e74be426ba035f39d36cd
tree2d2cd2af6c4dedcb3809f11c2c3f8fbebbede8be
parent7be5af9d11a08de0a8cb920dade81341d16f40ad
Btrfs: merge inode_list in __merge_refs

When __merge_refs merges two refs, it is also needed to merge the
inode_list of both refs. Otherwise we have missed backrefs and memory
leaks. This happens for example if two inodes share an extent and
both lie in the same leaf and thus also have the same parent.

Signed-off-by: Alexander Block <ablock84@googlemail.com>
Reviewed-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/backref.c