]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
btrfs: reuse existing variable in scrub_stripe, reduce stack usage
authorDavid Sterba <dsterba@suse.com>
Thu, 24 Mar 2016 17:00:53 +0000 (18:00 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 6 May 2016 13:22:49 +0000 (15:22 +0200)
commite6c11f9a462e9ef4876d5e1539a6c06eded4c793
tree2043f42141bc46ddc176abc6b1feacb3857da4d2
parent49a3c4d9b64d2e5d6fd268d53153945d04cb5559
btrfs: reuse existing variable in scrub_stripe, reduce stack usage

The key variable occupies 17 bytes, the key_start is used once, we can
simply reuse existing 'key' for that purpose. As the key is not a simple
type, compiler doest not do it on itself.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/scrub.c