RE: [PATCH] btrfs: fix memory leak during RAID 5/6 device replacement

2016-05-16 Thread Zhao Lei
er.kernel.org; Zhao Lei <zhao...@cn.fujitsu.com> > > Subject: Re: [PATCH] btrfs: fix memory leak during RAID 5/6 device > replacement > > > > CC Zhao Lei <zhao...@cn.fujitsu.com> > > > > On Mon, May 09, 2016 at 09:14:28AM -0400, Scott Talbert w

RE: [PATCH] btrfs: fix memory leak during RAID 5/6 device replacement

2016-05-13 Thread Zhao Lei
Hi, Scott Talbert * From: David Sterba [mailto:dste...@suse.cz] > Sent: Tuesday, May 10, 2016 1:32 AM > To: Scott Talbert <scott.talb...@hgst.com> > Cc: linux-btrfs@vger.kernel.org; Zhao Lei <zhao...@cn.fujitsu.com> > Subject: Re: [PATCH] btrfs: fix memory leak during RAI

Re: [PATCH] btrfs: fix memory leak during RAID 5/6 device replacement

2016-05-09 Thread David Sterba
CC Zhao Lei On Mon, May 09, 2016 at 09:14:28AM -0400, Scott Talbert wrote: > A 'struct bio' is allocated in scrub_missing_raid56_pages(), but it was never > freed anywhere. > > Signed-off-by: Scott Talbert > --- > fs/btrfs/scrub.c | 2 ++ > 1

[PATCH] btrfs: fix memory leak during RAID 5/6 device replacement

2016-05-09 Thread Scott Talbert
A 'struct bio' is allocated in scrub_missing_raid56_pages(), but it was never freed anywhere. Signed-off-by: Scott Talbert --- fs/btrfs/scrub.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index 82bedf9..607cc6e 100644 ---