btrfs: incremental send, move allocation until it's needed in orphan_dir_info
authorRobbie Ko <robbieko@synology.com>
Tue, 8 May 2018 10:11:37 +0000 (18:11 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:32 +0000 (18:07 +0200)
commit35c8eda12fc69e8a3f67c4615050ca4e76adec32
treed0c820fdc66b62d5ecabd1e48cb246880a8d66ab
parent2335efafa63f0c675ebb4f8908fff9e972fb8a58
btrfs: incremental send, move allocation until it's needed in orphan_dir_info

Move the allocation after the search when it's clear that the new entry
will be added.

Signed-off-by: Robbie Ko <robbieko@synology.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
[ update changelog ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c