On Mon, Jun 18, 2018 at 02:10:58PM +0300, Nikolay Borisov wrote: > check_chunks_and_extents does quite a number of distinct things. The > first of those is going through all root items in the root tree and > classify every root depending on whether they have a dropping operation > in progress or not. Lets factor out this code and move the variables > specific to this in a separate function so clean up check_chunks_and_extents > a bit. Accidentally, this patch fixes some reference leaks since > in error conditions in the loop the code does "goto out" but at that > label we don't really release the path. Having this code extracted in a > separate function which always releases the path avoids this problem > entirely. > > Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
