From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f65.google.com ([209.85.215.65]:34029 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755736AbdETQuT (ORCPT ); Sat, 20 May 2017 12:50:19 -0400 Received: by mail-lf0-f65.google.com with SMTP id q24so2172232lfb.1 for ; Sat, 20 May 2017 09:50:08 -0700 (PDT) From: Timofey Titovets To: linux-btrfs@vger.kernel.org Cc: Timofey Titovets Subject: [PATCH v2 0/2] Btrfs: compression fixes Date: Sat, 20 May 2017 19:49:51 +0300 Message-Id: <20170520164953.7344-1-nefelim4ag@gmail.com> Sender: linux-btrfs-owner@vger.kernel.org List-ID: First patch: fix copy paste typo in debug message in lzo.c, lzo is not deflate Second patch: force btrfs to not store data as compressed, if compression will not free at least one PAGE_SIZE, because it's useless in term of storage 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) Timofey Titovets (2): Btrfs: lzo.c pr_debug() deflate->lzo Btrfs: compression must free at least PAGE_SIZE fs/btrfs/lzo.c | 7 +++++-- fs/btrfs/zlib.c | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) -- 2.13.0