From patchwork Fri Jul 29 17:42:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 12932756 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A2B3C00144 for ; Fri, 29 Jul 2022 17:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238031AbiG2Rro (ORCPT ); Fri, 29 Jul 2022 13:47:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237395AbiG2Rrm (ORCPT ); Fri, 29 Jul 2022 13:47:42 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26E4F78221 for ; Fri, 29 Jul 2022 10:47:42 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id CBB085BE2A; Fri, 29 Jul 2022 17:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1659116860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0+O/0UNcvkohrFT6XGtfZEeCy1uuczdusPSzY9rTQsI=; b=F1obKr0Givjj3KxofgnN95jGwDsF6d51RurlwxUHzmfAka/1UZ/7e+JGSg6qxRV4jOCSNO 31ovNWl9WeghgYG6Xks9R/vZWG05xx4nLBYgOSfKP/Y14TUWZ+SzAZLMqVXtoUspiR08cE xP9CVWwws+X3/Uu+XnNO3YPnsbI8Mkw= Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id C28102C141; Fri, 29 Jul 2022 17:47:40 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 9A64FDA85A; Fri, 29 Jul 2022 19:42:42 +0200 (CEST) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH v2 0/4] Selectable checksum implementation Date: Fri, 29 Jul 2022 19:42:42 +0200 Message-Id: X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Add a possibility to load accelerated checksum implementation after a filesystem has been mounted. Detailed description in patch 3. v2: rebased on misc-next David Sterba (4): btrfs: prepare more slots for checksum shash btrfs: assign checksum shash slots on init btrfs: add checksum implementation selection after mount btrfs: sysfs: print all loaded csums implementations fs/btrfs/check-integrity.c | 4 +- fs/btrfs/ctree.h | 13 ++++- fs/btrfs/disk-io.c | 30 +++++++---- fs/btrfs/file-item.c | 4 +- fs/btrfs/inode.c | 2 +- fs/btrfs/scrub.c | 12 ++--- fs/btrfs/super.c | 2 - fs/btrfs/sysfs.c | 101 +++++++++++++++++++++++++++++++++++-- 8 files changed, 141 insertions(+), 27 deletions(-)