]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: heuristic: add detection of repeated data patterns
authorTimofey Titovets <nefelim4ag@gmail.com>
Thu, 28 Sep 2017 14:33:39 +0000 (17:33 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 1 Nov 2017 19:45:36 +0000 (20:45 +0100)
commit05b26451e71f81baadd307a1108981ee0c5bb163
treedbe0f0b44b9814655e5b64e8b0cc72db375227b9
parent3daef45aecfe057d01bc4e9ba4f37aca7a1504b5
Btrfs: heuristic: add detection of repeated data patterns

Walk over data sample and use memcmp to detect repeated patterns, like
zeros, but a bit more general.

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