Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp790571rdg; Fri, 13 Oct 2023 00:42:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPGukz97TXZVdSsxuO8dsDKH06ieDek5e6T9uo2PTnubyrNcZ1J6weCtWqgfw+tvh72i2o X-Received: by 2002:a05:6a21:998a:b0:13f:13cb:bc50 with SMTP id ve10-20020a056a21998a00b0013f13cbbc50mr35846715pzb.25.1697182921807; Fri, 13 Oct 2023 00:42:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697182921; cv=none; d=google.com; s=arc-20160816; b=W3fhbXaEFX4tMe6tdYjy2d42VcyPalrTSAi1uJKb05w8advdPM7n3u7noMWzFtdi8K mlRkw47N56FA9S7nIq+dJs1oduKvmQyyBPtx5yomrzH61pdpRGYt2B+WIsKpN43OS/iU cbFTaJ9qxG2pphQUHPKPmN9mlLyZxl/jLN5fAuAZADCNBh73ssdjXXitqbCMR1kIfOqv vIJL8IxANLiHK8JXTqMdpvX2D9hpv5/KQms/OP4GPYCtX7M4VeWVATHj4lYQreG9qz7+ JVD5OHykRhYFXwFdtOpwZIMBWDwoNGW8oRaeHqpZ8VDamOUlxsiZlGJcxlLrcBRzs9nX CoVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:subject:cc:to:from:date; bh=1bGQT9O7DKjq+nruYxlXLF+prYSJ1/TxUa00gv00SkU=; fh=rLt+2nbm/xVfBVN4+4iEfWF8IqTi6wGQAa3OIw/WOio=; b=QsHv91IlbjksUZMr/AGfwwXpK5Fbumu8oHmGJrkKe7UTZa0LbxbAdM63erLoBh+A4v IKmjbx4MFHvoUobzLwA210Wv1mV/RUB5H2BsdwORp80aTXRLCKmKFgXwdWWHb4Qc6LcU iPvxXCoaSEBgYpel/LCkYz5917CEvkyCbmAjtMKcaCbhAXWWbUwJJT97yzdOOKLUVRbn XB1aplcxV7Jbvuh3jzyGP7ss/tS730Qg5bvqhpfRstuTNwlrPg83d4blyff49QUYwQ9T yJLMdr2swQKBpPNTChu4Uwlyq/kvBdbBa6512SJuxEIJ24l1IBauE9/x50tvggP1vg5e cTQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id w8-20020a63f508000000b005898db9d66esi4249298pgh.625.2023.10.13.00.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:42:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 87AC8818CCB4; Fri, 13 Oct 2023 00:41:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbjJMHl0 (ORCPT + 99 others); Fri, 13 Oct 2023 03:41:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbjJMHlX (ORCPT ); Fri, 13 Oct 2023 03:41:23 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 12EB783 for ; Fri, 13 Oct 2023 00:41:19 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.14.172] ) by ajax-webmail-localhost.localdomain (Coremail) ; Fri, 13 Oct 2023 15:39:32 +0800 (GMT+08:00) X-Originating-IP: [182.148.14.172] Date: Fri, 13 Oct 2023 15:39:32 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: "KaiLong Wang" To: mark@fasheh.com, jlbec@evilplan.org, akpm@linux-foundation.org Cc: ocfs2-devel@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] ocfs2/dlm: Clean up errors in dlmdomain.c X-Priority: 3 X-Mailer: Coremail Webmail Server Version 2023.1-cmXT6 build 20230419(ff23bf83) Copyright (c) 2002-2023 www.mailtech.cn mispb-4e503810-ca60-4ec8-a188-7102c18937cf-zhkzyfz.cn Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <62e91e34.969.18b27f9ec40.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwD3lD809ChlLd_BAA--.756W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQADB2UnvzMAKwACsi X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 13 Oct 2023 00:41:57 -0700 (PDT) Rml4IHRoZSBmb2xsb3dpbmcgZXJyb3JzIHJlcG9ydGVkIGJ5IGNoZWNr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