bcache: replace hard coded number with BUCKET_GC_GEN_MAX
authorColy Li <colyli@suse.de>
Mon, 8 Oct 2018 12:41:18 +0000 (20:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Sep 2019 06:22:05 +0000 (08:22 +0200)
commitd1cec665de2c30e4fcad23b871173ad51c2946b7
treec88297299a7d6f4d0458d217b132ff3e012c1150
parentee30121fbd78a1097d838fc7abd7b9161edc5e2d
bcache: replace hard coded number with BUCKET_GC_GEN_MAX

[ Upstream commit 149d0efada7777ad5a5242b095692af142f533d8 ]

In extents.c:bch_extent_bad(), number 96 is used as parameter to call
btree_bug_on(). The purpose is to check whether stale gen value exceeds
BUCKET_GC_GEN_MAX, so it is better to use macro BUCKET_GC_GEN_MAX to
make the code more understandable.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/bcache/extents.c