]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
Btrfs: heuristic: implement sampling logic
authorTimofey Titovets <nefelim4ag@gmail.com>
Thu, 28 Sep 2017 14:33:38 +0000 (17:33 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 1 Nov 2017 19:45:36 +0000 (20:45 +0100)
commita440d48c7f93af5bae86af676cc6cd4e9fd6015f
tree366c4445039476a4ad8ee1ec39cd648cd4da0ba0
parent17b5a6c17e265ca84fac9c3256ff86c691f04aab
Btrfs: heuristic: implement sampling logic

Copy sample data from the input data range to sample buffer then
calculate byte value count for that sample into bucket.

Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
[ minor comment updates ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c