OSDN Git Service

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)
commitc2fcdcdf36bba08c5d2fbf4f17c2d8a944bfd4df
tree3d7ef1596b198197daa7039ee50fd6ee98321e81
parent131ce4367a8f37c6609148117a051d86cd55a5d9
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