btrfs: alloc_chunk: do not refurbish num_bytes
authorHans van Kranenburg <hans.van.kranenburg@mendix.com>
Thu, 4 Oct 2018 21:24:38 +0000 (23:24 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Dec 2018 13:51:33 +0000 (14:51 +0100)
commit2f29df4fc24ee3467f0073300d93a55499c7dd9f
treead97ce2d8726c3cdbeef04bc0a2e91ddf0cd2bdd
parent3cd24c698004d2f7668e0eb9fc1f096f533c791b
btrfs: alloc_chunk: do not refurbish num_bytes

The variable num_bytes is used to store the chunk length of the chunk
that we're allocating. Do not reuse it for something really different in
the same function.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Hans van Kranenburg <hans.van.kranenburg@mendix.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c