Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp787479rdg; Fri, 13 Oct 2023 00:33:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4a+thoWKjy7IJvydQYVDf6654wacteqNU4bX+4CuSaKLN6P61nsNlT4gWAsztHx+zEL/9 X-Received: by 2002:a17:902:b7c3:b0:1c9:de48:fc78 with SMTP id v3-20020a170902b7c300b001c9de48fc78mr4878598plz.7.1697182405082; Fri, 13 Oct 2023 00:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697182405; cv=none; d=google.com; s=arc-20160816; b=ZErwKpdQWT3rXKNYDGhGQRncYzJviMCN+fhu6CkrZZiU2Fk+qeN5D+fqk4KMT27R4t isTpnHvywrmRkpIR6SP2YXJ9ZECh9lfiVsWP9e6WtLIjQ8TDpTXDc/xXRNamFA7tvv4y regFKTTtSeMkNSfW7Qe7tmcoq9mO9mflTkU00N4KST3Gsl3TuDst3GBL1Hw0tfiLRXvF YNnU4rz/qJ6rhjEfdT+KUCFYmmXk/XZwYxzlPelC77VaTiLxLxxiF9kgCRf8wDV0GPV+ X2evCSbVV+Wh+wkcHGEdFvnocqlJYz0Lyiewu66UvI2XO1P0PM8GXTpqkKTMYC1fENBj cfPg== 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=16Wo0vFWDkR5Pp18wkABTLKqT6mqbpQW7hT4stR7GjE=; fh=rLt+2nbm/xVfBVN4+4iEfWF8IqTi6wGQAa3OIw/WOio=; b=LMuI+I4se2FrSVef1hcwZLatxrn4Us2vFCTJqzS7V061J6AzwjuLDMZnt19BAOnefF 9Q7lz0k1NlpD50sUcjTLL3Jsj9ZfZZiwulJBCVBWCqSmyqEZpeNKmuxkZVEP7UNzAmlw ZqDHMInzCPD46oJ6Hv3QLcJON09wnUmirhE3RC0H9RRUll+CGMKfXRnGeAS8f+6jri70 yiF3lweaQwTsB4cN/gDrS1UWrNdWkjdZafJa2iec7L5k0aJS8dIpOP2tZi3qxMnAIuX6 w0ZLV6WIy31YT90ElBYuhTzdsE6o9DzDu4I5EPCHrjdRmbK9BaVunv6AwsNl4VOif30j DXbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y22-20020a17090264d600b001c6223e5675si3732973pli.188.2023.10.13.00.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 00:33:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 597088263765; Fri, 13 Oct 2023 00:33:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbjJMHdB (ORCPT + 99 others); Fri, 13 Oct 2023 03:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjJMHc7 (ORCPT ); Fri, 13 Oct 2023 03:32:59 -0400 Received: from jari.cn (unknown [218.92.28.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 292B4AD for ; Fri, 13 Oct 2023 00:32:58 -0700 (PDT) Received: from wangkailong$jari.cn ( [182.148.14.172] ) by ajax-webmail-localhost.localdomain (Coremail) ; Fri, 13 Oct 2023 15:30:59 +0800 (GMT+08:00) X-Originating-IP: [182.148.14.172] Date: Fri, 13 Oct 2023 15:30:59 +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 dlmmaster.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: <7a92ebb0.967.18b27f217c1.Coremail.wangkailong@jari.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: AQAAfwD3lD8z8ihl+t7BAA--.754W X-CM-SenderInfo: 5zdqwypdlo00nj6mt2flof0/1tbiAQADB2UnvzMAKgAHsm 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 13 Oct 2023 00:33:22 -0700 (PDT) Rml4IHRoZSBmb2xsb3dpbmcgZXJyb3JzIHJlcG9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