]> asedeno.scripts.mit.edu Git - linux.git/commit
bcache: check return value of register_shrinker
authorMichael Lyle <mlyle@lyle.org>
Fri, 24 Nov 2017 23:14:27 +0000 (15:14 -0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Nov 2017 23:23:01 +0000 (16:23 -0700)
commit6c4ca1e36cdc1a0a7a84797804b87920ccbebf51
tree2eb6d0aadde521db60ab420f412262db6aa01640
parente393aa2446150536929140739f09c6ecbcbea7f0
bcache: check return value of register_shrinker

register_shrinker is now __must_check, so check it to kill a warning.
Caller of bch_btree_cache_alloc in super.c appropriately checks return
value so this is fully plumbed through.

This V2 fixes checkpatch warnings and improves the commit description,
as I was too hasty getting the previous version out.

Signed-off-by: Michael Lyle <mlyle@lyle.org>
Reviewed-by: Vojtech Pavlik <vojtech@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/bcache/btree.c