]> 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)
commitf9783a2db2130b69c3cca8e7a66d910ab847217e
tree3d7ef1596b198197daa7039ee50fd6ee98321e81
parent303fb885eb889d8ad7938f7c3d9d93038d89172a
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