Commit 5e9df50f authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Zhihao Cheng
Browse files

ubi: fastmap: Use the bitmap API to allocate bitmaps

mainline inclusion
from mainline-v6.1-rc1
commit e7f35da2
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I9195H
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e7f35da21f6f8c6a8c7d262dd4e4bd32e3083f79



-------------------------------------------------

Use bitmap_zalloc()/bitmap_free() instead of hand-writing them.

It is less verbose and it improves the semantic.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
parent 162d8dcc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment