ubi: fastmap: Add control in 'UBI_IOCATT' ioctl to reserve PEBs for filling pools
authorZhihao Cheng <chengzhihao1@huawei.com>
Mon, 28 Aug 2023 06:38:45 +0000 (14:38 +0800)
committerRichard Weinberger <richard@nod.at>
Sat, 28 Oct 2023 21:16:00 +0000 (23:16 +0200)
commitac085cfe57df2cc1d7a5c4c5e64b8780c8ad452f
tree22e450f1ed9849e2a0c5840abfdd5401e0c1a37e
parentd4c48e5b58f12835de779f5425ef741c4d0fb53e
ubi: fastmap: Add control in 'UBI_IOCATT' ioctl to reserve PEBs for filling pools

This patch imports a new field 'need_resv_pool' in struct 'ubi_attach_req'
to control whether or not reserving free PEBs for filling pool/wl_pool.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=217787
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/cdev.c
include/uapi/mtd/ubi-user.h