]> git.baikalelectronics.ru Git - 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)
commit735fe1822ef3f27889e137bc1cd2a81c76db952b
tree2043f42141bc46ddc176abc6b1feacb3857da4d2
parentdd6bedfee8817723e93246507c33da3f5f63fc07
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