]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: send: fix old buffer length in fs_path_ensure_buf
authorDavid Sterba <dsterba@suse.cz>
Tue, 25 Feb 2014 18:32:59 +0000 (19:32 +0100)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:16:58 +0000 (15:16 -0400)
commitf52f046d437bda94b1ec5d35f2c7db33eae08c02
treed17bf2906f08350ecb62ec4fe9dce3b843d7609f
parenta7cc2a4f8f0e0be733ac456285a8bc349b12d91f
btrfs: send: fix old buffer length in fs_path_ensure_buf

In "btrfs: send: lower memory requirements in common case" the code to
save the old_buf_len was incorrectly moved to a wrong place and broke
the original logic.

Reported-by: Filipe David Manana <fdmanana@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Reviewed-by: Filipe David Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/send.c