Skip to content

Commit 25da852

Browse files
adam900710kdave
authored andcommitted
btrfs: compression: remove dead comments in btrfs_compress_heuristic()
Since commit a440d48 ("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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent b086c5b commit 25da852

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/btrfs/compression.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,11 +1476,6 @@ static void heuristic_collect_sample(struct inode *inode, u64 start, u64 end,
14761476
/*
14771477
* Compression heuristic.
14781478
*
1479-
* For now is's a naive and optimistic 'return true', we'll extend the logic to
1480-
* quickly (compared to direct compression) detect data characteristics
1481-
* (compressible/incompressible) to avoid wasting CPU time on incompressible
1482-
* data.
1483-
*
14841479
* The following types of analysis can be performed:
14851480
* - detect mostly zero data
14861481
* - detect data with low "byte set" size (text, etc)

0 commit comments

Comments
 (0)