summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTimofey Titovets <nefelim4ag@gmail.com>2017-09-28 17:33:40 +0300
committerDavid Sterba <dsterba@suse.com>2017-11-01 20:45:36 +0100
commita288e92cacdc4729ad8f83d018fb0f3f5ded6c37 (patch)
treed305a7ac88dfe4507782d0b7f92f244087c36fb5 /lib
parent1fe4f6fa5ae7dd1e63145e1ced7b9b38854da9f4 (diff)
downloadlinux-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