]> git.baikalelectronics.ru Git - kernel.git/commit
bcache: move definition of 'int ret' out of macro read_bucket()
authorColy Li <colyli@suse.de>
Wed, 24 Apr 2019 16:48:32 +0000 (00:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Apr 2019 16:56:27 +0000 (10:56 -0600)
commitd2229f9c50bfc03b98a92e5d5b3c08f3c8d52aea
tree01cf8b314ad3e8d1897ff8aa21201441d372810c
parente1e711abd0863f437e754702972bfc5d3234886d
bcache: move definition of 'int ret' out of macro read_bucket()

'int ret' is defined as a local variable inside macro read_bucket().
Since this macro is called multiple times, and following patches will
use a 'int ret' variable in bch_journal_read(), this patch moves
definition of 'int ret' from macro read_bucket() to range of function
bch_journal_read().

Signed-off-by: Coly Li <colyli@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/journal.c