]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add skeleton code for compression heuristic
authorTimofey Titovets <nefelim4ag@gmail.com>
Mon, 17 Jul 2017 13:52:58 +0000 (16:52 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:04 +0000 (16:12 +0200)
commitac45ffed762bb31a6bb8911528cc460d81915b99
tree3d7ef1596b198197daa7039ee50fd6ee98321e81
parent901b4aac496614f8240c9ccf25285f83fa06ab22
Btrfs: add skeleton code for compression heuristic

Add skeleton code for compresison heuristics. Now it iterates over all
the pages, but in the end always says "yes, compress please", ie it does
not change the current behaviour.

In the future we're going to add various heuristics to analyze the data.
This patch can be used as a baseline for measuring if the effectivness
and performance.

Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ enhanced changelog, modified comments ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/compression.h
fs/btrfs/inode.c