linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Btrfs: compression fixes
@ 2017-05-25 18:12 Timofey Titovets
  2017-05-25 18:12 ` [PATCH v4 1/2] Btrfs: lzo.c pr_debug() deflate->lzo Timofey Titovets
  2017-05-25 18:12 ` [PATCH v4 2/2] Btrfs: compression must free at least one sector size Timofey Titovets
  0 siblings, 2 replies; 6+ messages in thread
From: Timofey Titovets @ 2017-05-25 18:12 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Timofey Titovets

First patch:
Fix copy paste typo in debug message for lzo.c, lzo is not deflate

Second patch:
Force btrfs to not store data as compressed,
if compression will not free at least one sector size,
because it's useless in term of saving storage space and
reading data from disk, as a result productivity suffers.

Changes since v1:
- Merge patches for zlib and lzo in one
- Sync check logic for zlib and lzo
- Check profit after all data are compressed (not while compressing)

Changes since v2:
- Fix comparassion logic, it's enough if:
  compressed size + PAGE_SIZE not bigger then input data size

Changes since v3:
- Use btrfs sector size directly instead of assume that PAGE_SIZE == sectorsize

Timofey Titovets (2):
  Btrfs: lzo.c pr_debug() deflate->lzo
  Btrfs: compression must free at least one sector size

 fs/btrfs/lzo.c  | 11 +++++++++--
 fs/btrfs/zlib.c |  7 ++++++-
 2 files changed, 15 insertions(+), 3 deletions(-)

--
2.13.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-29 18:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-25 18:12 [PATCH v4 0/2] Btrfs: compression fixes Timofey Titovets
2017-05-25 18:12 ` [PATCH v4 1/2] Btrfs: lzo.c pr_debug() deflate->lzo Timofey Titovets
2017-05-29 14:24   ` David Sterba
2017-05-25 18:12 ` [PATCH v4 2/2] Btrfs: compression must free at least one sector size Timofey Titovets
2017-05-29 14:23   ` David Sterba
2017-05-29 18:16     ` Timofey Titovets

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).