Re: [PATCH 3/5] Btrfs: incremental send, fix orphan_dir_info not completely cleared

2015-06-05 Thread David Sterba
On Thu, Jun 04, 2015 at 07:18:08PM +0800, Robbie Ko wrote: > @@ -2913,6 +2912,12 @@ static int can_rmdir(struct send_ctx *sctx, u64 dir, > u64 dir_gen, > } > > if (loc.objectid > send_progress) { > + struct orphan_dir_info *odi; > + > +

Re: [PATCH 3/5] Btrfs: incremental send, fix orphan_dir_info not completely cleared

2015-06-04 Thread Filipe David Manana
On Thu, Jun 4, 2015 at 12:18 PM, Robbie Ko wrote: > There's one case where we not clear orphan_dir_info issue. You mean where we leak a orphan_dir_info structure. > > Example: > > Parent snapshot: > | a/ (ino 279) > | c (ino 282) > | del/ (ino 281) > | tmp/ (ino 280) > |---