mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Increase limit of redaction list by using spill block
Currently redaction bookmarks and their associated redaction lists have a relatively low limit of 36 redaction snapshots. This is imposed by the number of snapshot GUIDs that fit in the bonus buffer of the redaction list object. While this is more than enough for most use cases, there are some limited cases where larger numbers would be useful to support. We tweak the redaction list creation code to use a spill block if the number of redaction snapshots is above the amount that would fit in the bonus buffer. We also make a small change to allow spill blocks to be use for types of data besides SA. In order to fully leverage this logic, we also change the redaction code to use vmem_alloc, to handle extremely large allocations if needed. Finally, small tweaks were made to the zfs commands and the test suite. Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Signed-off-by: Paul Dagnelie <pcd@delphix.com> Closes #15018
This commit is contained in:
@@ -72,6 +72,7 @@ typedef struct redaction_list_phys {
|
||||
typedef struct redaction_list {
|
||||
dmu_buf_user_t rl_dbu;
|
||||
redaction_list_phys_t *rl_phys;
|
||||
dmu_buf_t *rl_bonus;
|
||||
dmu_buf_t *rl_dbuf;
|
||||
uint64_t rl_object;
|
||||
zfs_refcount_t rl_longholds;
|
||||
|
||||
Reference in New Issue
Block a user