From patchwork Thu Jul 25 09:33:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Thumshirn X-Patchwork-Id: 11058317 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CD345112C for ; Thu, 25 Jul 2019 09:34:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC06528998 for ; Thu, 25 Jul 2019 09:34:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AECE32899B; Thu, 25 Jul 2019 09:34:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46FAD28998 for ; Thu, 25 Jul 2019 09:34:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403803AbfGYJeM (ORCPT ); Thu, 25 Jul 2019 05:34:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:52296 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390556AbfGYJeJ (ORCPT ); Thu, 25 Jul 2019 05:34:09 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E2C35ABE9 for ; Thu, 25 Jul 2019 09:34:08 +0000 (UTC) From: Johannes Thumshirn To: David Sterba Cc: Linux BTRFS Mailinglist , Johannes Thumshirn Subject: [RFC PATCH 0/4] Support xxhash64 checksums Date: Thu, 25 Jul 2019 11:33:47 +0200 Message-Id: X-Mailer: git-send-email 2.16.4 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Now that Nikolay's XXHASH64 support for the Crypto API has landed and BTRFS is prepared for an easy addition of new checksums, this patchset implements XXHASH64 as a second, fast but not cryptographically secure checksum hash. This still is in RFC state (especially the btrfs-progs side). David Sterba (1): btrfs: sysfs: export supported checksums Johannes Thumshirn (3): btrfs: turn checksum type define into a union btrfs: create structure to encode checksum type and length btrfs: use xxhash64 for checksumming fs/btrfs/Kconfig | 1 + fs/btrfs/ctree.h | 17 ++++++++++++----- fs/btrfs/disk-io.c | 1 + fs/btrfs/super.c | 1 + fs/btrfs/sysfs.c | 35 +++++++++++++++++++++++++++++++++++ include/uapi/linux/btrfs_tree.h | 5 ++++- 6 files changed, 54 insertions(+), 6 deletions(-)