summaryrefslogtreecommitdiff
path: root/include/libubi.h
diff options
context:
space:
mode:
authorZhihao Cheng <chengzhihao1@huawei.com>2023-11-13 17:48:12 +0800
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-11-20 07:43:34 +0100
commit2425614638a798e55e79e1b1f9b8d84567769311 (patch)
treef869bbaf48ea9cfd0db936fb26d6c4ad7076ed94 /include/libubi.h
parentb4b45994a9ba02d575625e3b1076c337be7d4861 (diff)
ubiattach: introduce need_resv_pool in UBI_IOCATT
The ioctl UBI_IOCATT has been extended with need_resv_pool parameter in [1]. This parameter is used for deciding whether to reserve PEBs for filling pool/wl_pool for target ubi device. This parameter will be effective when fastmap is enabled, which will slow down the frequency of updating fastmap by filling more free PEBs in pool/wl_pool. See details in [2]. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ac085cfe57df2cc1d7a5c4c5e64b8780c8ad452f [2] https://bugzilla.kernel.org/show_bug.cgi?id=217787 Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/libubi.h')
-rw-r--r--include/libubi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libubi.h b/include/libubi.h
index 8ea11e0..e1e234e 100644
--- a/include/libubi.h
+++ b/include/libubi.h
@@ -55,6 +55,7 @@ typedef void * libubi_t;
* most of the users want)
* @max_beb_per1024: Maximum expected bad eraseblocks per 1024 eraseblocks
* @disable_fm: whether disable fastmap
+ * @need_resv_pool: whether reserve free pebs for filling pool/wl_pool
*/
struct ubi_attach_request
{
@@ -64,6 +65,7 @@ struct ubi_attach_request
int vid_hdr_offset;
int max_beb_per1024;
bool disable_fm;
+ bool need_resv_pool;
};
/**