aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorOmar Sandoval <[email protected]>2023-10-16 17:41:55 +0000
committerDarrick J. Wong <[email protected]>2023-10-19 15:34:33 +0000
commite23aaf450de733044a74bc95528f728478b61c2a (patch)
tree914e368b9df0c28a963aa475190bfd3870147e73 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentxfs: simplify rt bitmap/summary block accessor functions (diff)
downloadkernel-e23aaf450de733044a74bc95528f728478b61c2a.tar.gz
kernel-e23aaf450de733044a74bc95528f728478b61c2a.zip
xfs: invert the realtime summary cache
In commit 355e3532132b ("xfs: cache minimum realtime summary level"), I added a cache of the minimum level of the realtime summary that has any free extents. However, it turns out that the _maximum_ level is more useful for upcoming optimizations, and basically equivalent for the existing usage. So, let's change the meaning of the cache to be the maximum level + 1, or 0 if there are no free extents. For example, if the cache contains: {0, 4} then there are no free extents starting in realtime bitmap block 0, and there are no free extents larger than or equal to 2^4 blocks starting in realtime bitmap block 1. The cache is a loose upper bound, so there may or may not be free extents smaller than 2^4 blocks in realtime bitmap block 1. Signed-off-by: Omar Sandoval <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions