]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Feb 2018 19:07:55 +0000 (11:07 -0800)
commited996209f0209d8863e135252a5c392aa5e775fe
tree11ca302a9f9dda252db3e78d45222f7f5d7f0ff6
parentf0705804d8ee13573ed34e6f86a5debfb15ba346
bcache: check return value of register_shrinker

[ Upstream commit 6c4ca1e36cdc1a0a7a84797804b87920ccbebf51 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/bcache/btree.c