diff options
author | Alexander Motin <[email protected]> | 2023-08-07 16:54:41 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2024-04-19 10:13:38 -0700 |
commit | fdd97e00934b9a1af7f953333ddf4f7c196907f0 (patch) | |
tree | fb374bdc1e4fac9496e4f814b1b2c1df997a3c84 /module/icp | |
parent | 3b8817db9607a875428d1a3bceb015de9709ae65 (diff) |
Refactor dmu_prefetch().
- Split dmu_prefetch_dnode() from dmu_prefetch() into a separate
function. It is quite inconvenient to read the code where len = 0
means dnode prefetch instead indirect/data prefetch. One function
doing both has no benefits, since the code paths are independent.
- Improve dmu_prefetch() handling of long block ranges. Instead
of limiting L0 data length to prefetch for to dmu_prefetch_max,
make dmu_prefetch_max limit the actual amount of prefetch at the
specified level, and, if there is more, prefetch all the rest at
higher indirection level. It should improve random access times
within the prefetched range of any length, reducing importance of
specific dmu_prefetch_max value.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Alexander Motin <[email protected]>
Sponsored by: iXsystems, Inc.
Closes #15076
Diffstat (limited to 'module/icp')
0 files changed, 0 insertions, 0 deletions