Re: [PATCH 6/7] Btrfs: fix eb memory leak due to readpage failure

2016-05-18 Thread Josef Bacik
On 05/13/2016 08:07 PM, Liu Bo wrote: eb->io_pages is set in read_extent_buffer_pages(). In case of readpage failure, for pages that have been added to bio, it calls bio_endio and later readpage_io_failed_hook() does the work. When this eb's page (couldn't be the 1st page) fails to add itself t

[PATCH 6/7] Btrfs: fix eb memory leak due to readpage failure

2016-05-13 Thread Liu Bo
eb->io_pages is set in read_extent_buffer_pages(). In case of readpage failure, for pages that have been added to bio, it calls bio_endio and later readpage_io_failed_hook() does the work. When this eb's page (couldn't be the 1st page) fails to add itself to bio due to failure in merge_bio(), it