diff options
author | Zhihao Cheng <chengzhihao1@huawei.com> | 2023-08-28 14:38:44 +0800 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-10-28 23:15:44 +0200 |
commit | d4c48e5b58f12835de779f5425ef741c4d0fb53e (patch) | |
tree | 5ac8c422f56e56b4bcfae28fbf7647135f733b88 /drivers/mtd/ubi/cdev.c | |
parent | 90e0be56144b064be1a816cbdd184d2a8be7061b (diff) |
ubi: fastmap: Add module parameter to control reserving filling pool PEBs
Adding 6th module parameter in 'mtd=xxx' to control whether or not
reserving PEBs for filling pool/wl_pool.
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
-rw-r--r-- | drivers/mtd/ubi/cdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index f43430b9c1e6..98aa00344b29 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c @@ -1041,7 +1041,8 @@ static long ctrl_cdev_ioctl(struct file *file, unsigned int cmd, */ mutex_lock(&ubi_devices_mutex); err = ubi_attach_mtd_dev(mtd, req.ubi_num, req.vid_hdr_offset, - req.max_beb_per1024, !!req.disable_fm); + req.max_beb_per1024, !!req.disable_fm, + false); mutex_unlock(&ubi_devices_mutex); if (err < 0) put_mtd_device(mtd); |