diff options
| author | Timofey Titovets <nefelim4ag@gmail.com> | 2017-09-28 17:33:37 +0300 | 
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2017-11-01 20:45:36 +0100 | 
| commit | 17b5a6c17e265ca84fac9c3256ff86c691f04aab (patch) | |
| tree | 2eb9c8dab73fa0f881a94c67ff7030adc4ec6630 /lib/test-string_helpers.c | |
| parent | 4e439a0b184f014a5833fa468af36cc9f59b8fb1 (diff) | |
Btrfs: heuristic: add bucket and sample counters and other defines
Add basic defines and structures for data sampling.
Added macros:
 - For future sampling algo
 - For bucket size
Heuristic workspace:
 - Add bucket for storing byte type counters
 - Add sample array for storing partial copy of input data range
 - Add counter for store current sample size to workspace
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ minor coding style fixes, comments updated ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions
