[PATCH] Btrfs: merge inode_list in __merge_refs

2012-11-08 Thread Alexander Block
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

Re: [PATCH] Btrfs: merge inode_list in __merge_refs

2012-11-08 Thread Alexander Block
On Thu, Nov 8, 2012 at 10:27 PM, Alexander Block abloc...@googlemail.com wrote: 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

Re: [PATCH] Btrfs: merge inode_list in __merge_refs

2012-11-08 Thread Greg KH
On Thu, Nov 08, 2012 at 10:35:19PM +0100, Alexander Block wrote: Used wrong CC for stable list. Corrected now. formletter This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.