Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp144481rwb; Thu, 6 Oct 2022 16:02:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4d2G5tipM6auj8oQbEPvLO/ZE8MA9uKDH36MnepUyRgqdNgi438JT9JCg1L/FNe9AbZLmV X-Received: by 2002:a17:907:2c78:b0:78c:f533:41c8 with SMTP id ib24-20020a1709072c7800b0078cf53341c8mr1819652ejc.69.1665097355150; Thu, 06 Oct 2022 16:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665097355; cv=none; d=google.com; s=arc-20160816; b=l4PGK3wPNe4IN0xxsa0Ao65MxExwOcSZQyGXtljqmhhUMGhTxJkovgzcgfxxLom84v qMoIRAyvM30AKqqiPq6lpf+OKG6EFvnaihP69ZGji+6U5K6TZk5PpqJZzN0EdRG45C08 WxHFMEYxZcSq0UHBd7xZcHlGvG0/fYxCkVIKYLI5yQOPQfoEmaDkxfh0rofWzhzwhC5u UK486cI1ZCMbA9NGIeuHVkt87xFCJL7T2vCL182mJ5eKTIkvmayeukBAUYaCw3bUxGLz ZVEm6Lh6RvId4rWPLrXI28krfdAGq38Gquh0vxbrJlcalXnSWfiiX5vvqoJgJXTRFk5M 3Wgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BzPX7ATJ1oaxpGuf0PVinseY88CmdU+HARHaDj9AtIo=; b=FLO6g1Y8cfpI+VYaIK1tVTRZ25XJSLq26L7V4tzTE6b3stO+zr/JC8BKdP5Ahgu7He wkGXaVYByTp9rwm9O0Kvm2Z5W5v6/n0ylzb5bW2i7hFXo4r3yft+ZgHxHuVauzhPMkYa 3WTaP42g/wKCXMeUFBz2CGecujTl6VVnUQEcXR0wp3XY6V4AiCkMKED5+xRnezp2nRPc E46USb+nqq8jkyAWOrpCUK4YUhvyRexLODnl55RdU/sHD1n2kAGcpkYmM1Clc6B1Rm4p ME19ISdlekonWXVZaX2evAVY0Nv+mUN8cja07oBU3kAKJM/QsbXX8iHLnysnDgjvx5PL QZOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=XFTEarTM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s17-20020a1709062ed100b007309e8d567fsi515006eji.145.2022.10.06.16.02.02; Thu, 06 Oct 2022 16:02:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=XFTEarTM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232304AbiJFWng (ORCPT + 99 others); Thu, 6 Oct 2022 18:43:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbiJFWn2 (ORCPT ); Thu, 6 Oct 2022 18:43:28 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB326142C94; Thu, 6 Oct 2022 15:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BzPX7ATJ1oaxpGuf0PVinseY88CmdU+HARHaDj9AtIo=; b=XFTEarTMRQ8OPVLnEUe7ojm1rN KY2CyosasIJ4PjDyLd8UgRQhgpbO2C63gXavydiLAkrGkeBugdaoaMXSe/i2IrTVvqxoKQBCdtnbf T2FEzsQGQvW+fcQpwntv//6VjC7EZJ+kBwqArSTc5X4MsYdp1q78eFRAwYgKnw/uejGFoRZtnYp3B KlfEyqbxpctfP4Ml6yG7UPnZksHP9Cju9xhAKOagBStgz7kr4hpWR8aSx8d/HVNoAncZh55ssjkCg Hvvm2bu0ilt94rfR+O00FeVWKboVjPvrwOS477f/wjkz3KV6Aquu9rZ6G8rWjHOChDipD6Rqhh/QD APhNfXkA==; Received: from 201-43-120-40.dsl.telesp.net.br ([201.43.120.40] helo=localhost) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1ogZaP-00C4Ks-CC; Fri, 07 Oct 2022 00:43:26 +0200 From: "Guilherme G. Piccoli" To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: kernel-dev@igalia.com, kernel@gpiccoli.net, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, "Guilherme G. Piccoli" Subject: [PATCH 3/8] pstore: Inform unregistered backend names as well Date: Thu, 6 Oct 2022 19:42:07 -0300 Message-Id: <20221006224212.569555-4-gpiccoli@igalia.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221006224212.569555-1-gpiccoli@igalia.com> References: <20221006224212.569555-1-gpiccoli@igalia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently we only show the registered ones in the kernel log; users that change backend for some reason require first to unregister the current one, so let's confirm this operation with a message in the log. Signed-off-by: Guilherme G. Piccoli --- fs/pstore/platform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index be05090076ce..06c2c66af332 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -665,6 +665,8 @@ void pstore_unregister(struct pstore_info *psi) psinfo = NULL; kfree(backend); backend = NULL; + + pr_info("Unregistered %s as persistent store backend\n", psi->name); mutex_unlock(&psinfo_lock); } EXPORT_SYMBOL_GPL(pstore_unregister); -- 2.38.0