diff options
author | Timofey Titovets <nefelim4ag@gmail.com> | 2017-09-28 17:33:40 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-11-01 20:45:36 +0100 |
commit | a288e92cacdc4729ad8f83d018fb0f3f5ded6c37 (patch) | |
tree | d305a7ac88dfe4507782d0b7f92f244087c36fb5 /lib | |
parent | 1fe4f6fa5ae7dd1e63145e1ced7b9b38854da9f4 (diff) | |
download | linux-a288e92cacdc4729ad8f83d018fb0f3f5ded6c37.tar.bz2 |
Btrfs: heuristic: add byte set calculation
Calculate byte set size for data sample:
- calculate how many unique bytes have been in the sample
- for all bytes count > 0, check if we're still in the low count range
(~25%), such data are easily compressible, otherwise furhter analysis
is needed
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ update comments ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions