mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 18:40:10 +00:00
btrfs: compression: remove dead comments in btrfs_compress_heuristic()
Since commit a440d48c7f ("Btrfs: heuristic: implement sampling
logic"), btrfs_compress_heuristic() is no longer a simple "return true",
but more complex to determine if we should compress.
Thus the comment is dead and can be confusing, just remove it.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -1476,11 +1476,6 @@ static void heuristic_collect_sample(struct inode *inode, u64 start, u64 end,
|
|||||||
/*
|
/*
|
||||||
* Compression heuristic.
|
* Compression heuristic.
|
||||||
*
|
*
|
||||||
* For now is's a naive and optimistic 'return true', we'll extend the logic to
|
|
||||||
* quickly (compared to direct compression) detect data characteristics
|
|
||||||
* (compressible/incompressible) to avoid wasting CPU time on incompressible
|
|
||||||
* data.
|
|
||||||
*
|
|
||||||
* The following types of analysis can be performed:
|
* The following types of analysis can be performed:
|
||||||
* - detect mostly zero data
|
* - detect mostly zero data
|
||||||
* - detect data with low "byte set" size (text, etc)
|
* - detect data with low "byte set" size (text, etc)
|
||||||
|
|||||||
Reference in New Issue
Block a user