aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-region-hash.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2021-10-20 22:38:07 +0800
committerJens Axboe <axboe@kernel.dk>2021-10-20 08:40:54 -0600
commitd55f7cb2e5c053010d2b527494da9bbb722a78ba (patch)
tree9a5e6cd38a8fec1bea2acc91c16845849aed06a6 /drivers/md/dm-region-hash.c
parentbcache: reserve never used bits from bkey.high (diff)
downloadlinux-dev-d55f7cb2e5c053010d2b527494da9bbb722a78ba.tar.xz
linux-dev-d55f7cb2e5c053010d2b527494da9bbb722a78ba.zip
bcache: fix error info in register_bcache()
In register_bcache(), there are several cases we didn't set correct error info (return value and/or error message): - if kzalloc() fails, it needs to return ENOMEM and print "cannot allocate memory"; - if register_cache() fails, it's better to propagate its return value rather than using default EINVAL. Signed-off-by: Chao Yu <yuchao0@huawei.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Coly Li <colyli@suse.de> Link: https://lore.kernel.org/r/20211020143812.6403-4-colyli@suse.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-region-hash.c')
0 files changed, 0 insertions, 0 deletions