From patchwork Sat May 31 23:48:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Worrall X-Patchwork-Id: 4276791 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9ACAB9F3AE for ; Sat, 31 May 2014 23:49:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C99B520381 for ; Sat, 31 May 2014 23:49:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0407F20397 for ; Sat, 31 May 2014 23:49:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756700AbaEaXst (ORCPT ); Sat, 31 May 2014 19:48:49 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:54416 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755761AbaEaXsr (ORCPT ); Sat, 31 May 2014 19:48:47 -0400 Received: by mail-wi0-f181.google.com with SMTP id n15so2860618wiw.2 for ; Sat, 31 May 2014 16:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=v1ONS2u4T9UCU+EYwryI6RwXSGA3ubSAz7L7/3TCJJg=; b=ThSubzKIrRLB+Tcr789TRIOI4EgJI11xISdQSxOTKpAiwtoBjP/OMiKWKqbDQ/YQwD YhJ2W5X+qDZnE/LUfV8Ep8ZX2gRIA2/KTMtsSGZhusHnXAQDxJDEqyIpmuogBDApQsLF LJYL6xiB06qazSZbGSEUpJ2rMBTQwdy90R1WmdFHlLU2RLmYMXmMwMzwc3tcHCQ35Gd9 iWoUgBh4tK/eXieLbTUbVS2zjQxku6lLV7Z9d+N0R7fn503EJABgtkQ5CBmd+WRrfLBy 3KURBCrT8Kt/dmOII5q248jbTb49yYfcBCMChTd1UmQhA/SKQvEv6St6DgXxmQQxNQG7 t2BQ== X-Received: by 10.180.106.1 with SMTP id gq1mr9971678wib.45.1401580126229; Sat, 31 May 2014 16:48:46 -0700 (PDT) Received: from ubuntu.home (host86-148-25-253.range86-148.btcentralplus.com. [86.148.25.253]) by mx.google.com with ESMTPSA id em5sm18605440wic.23.2014.05.31.16.48.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 31 May 2014 16:48:45 -0700 (PDT) From: Philip Worrall To: linux-btrfs@vger.kernel.org Cc: Philip Worrall Subject: [PATCH 3/8] Btrfs: Add lz4 compression to avaialble compression ops Date: Sat, 31 May 2014 23:48:31 +0000 Message-Id: <1401580116-10458-4-git-send-email-philip.worrall@googlemail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1401580116-10458-1-git-send-email-philip.worrall@googlemail.com> References: <1401580116-10458-1-git-send-email-philip.worrall@googlemail.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add lz4 compression structure to available btrfs compression operations. Signed-off-by: Philip Worrall --- fs/btrfs/compression.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index ed1ff1c..35b3268 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -747,6 +747,7 @@ static wait_queue_head_t comp_workspace_wait[BTRFS_COMPRESS_TYPES]; static struct btrfs_compress_op *btrfs_compress_op[] = { &btrfs_zlib_compress, &btrfs_lzo_compress, + &btrfs_lz4_compress, }; void __init btrfs_init_compress(void)