lightnvm: pblk: reuse pblk_gc_should_kick
authorRakesh Pandit <rakesh@tuxera.com>
Fri, 13 Oct 2017 12:46:00 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit32825ebb06fafeff463ed23e9d0dea459ebd30fe
treede940ed6e2f5cdf6cf7e3ed202ce06edce7e796d
parentc79819bc0877e4cbed8013b1abc9697e8805b21b
lightnvm: pblk: reuse pblk_gc_should_kick

This is a trivial change which reuses pblk_gc_should_kick instead of
repeating it again in pblk_rl_free_lines_inc.

Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Made it apply to the common case.
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-rl.c
drivers/lightnvm/pblk.h