Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp997256imi; Fri, 22 Jul 2022 14:35:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tHlfpKnzA0Mh7GA3iYc+rJ4TiBIB3QMGvQISso8rn19iURX45wUFhqxPwKISX1FI4BxzXN X-Received: by 2002:a63:f74e:0:b0:41a:716c:bfc4 with SMTP id f14-20020a63f74e000000b0041a716cbfc4mr1520548pgk.14.1658525753641; Fri, 22 Jul 2022 14:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658525753; cv=none; d=google.com; s=arc-20160816; b=CDeblQSWNEcVr5CdEXE2Z/R0BoplpOf+LN4m114+0w4ARfYD2KZSWd2dBEQuP920e8 bCawvWYXmXD1oqNwCoWC5QrsZoHUqUI3VdVJG4P7PwR3c16OOcDlVWUZaPGLqh8n1G3t meZXxWmOgaJ58L5W94clP+CYT7SGmtok0OehZ2qPDUugT623WwLiKsW1Nrqt8DxTHTUu 1cfOU5dWIhR0Zz7RA5V/RyP9KKcruwrQQd9PUCpZIkVsKLG2EeUoe/oDt8recxdmti+F 72siqJr+kj3qiIt3a6GcSyXM7XNm0hlcO7rIsqo7IkckC+KIxGHhBQMD22TJ1n3xza/e QCqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LHeOXeT2W/l26vCWMiypCMzsZd0II5Y/bjZZQqtBe9c=; b=baloQyi90UaM8ek2O0O2+7nYPCywyAkjM/iyn4xj6wNM5plb1fnfbQlYDjmixNVv7B AmPfkDNsehLzE0fG1fi68br31xyMlTpiXKvgqN8f7AuHCbQPIkJlWIajTH9mI69B7XGb cx3nRXGeDz9UyX2ZHluxRCatl4aOgKumae/p2YZ5YnYNR2dHZ0iPbQWE8P9LOjMbFgJr /GWqkEe2P/3qDDg8r5EGQ7QHOyew17shfba4MDBOVYtUrQQT331yPj/IGxMPdEge5QoX JmXVpFCmToh6C0hFdKuECui7jbIiVmwpqZGEWiSEbFE3zZLM3mtKW3fJ+8HXKYuLYBH/ KPVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=enBUd5Bz; 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 n32-20020a635920000000b0040c9a07ae80si6944698pgb.165.2022.07.22.14.35.38; Fri, 22 Jul 2022 14:35:53 -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=pass header.i=@infradead.org header.s=casper.20170209 header.b=enBUd5Bz; 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 S229667AbiGVVdT (ORCPT + 99 others); Fri, 22 Jul 2022 17:33:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236335AbiGVVdK (ORCPT ); Fri, 22 Jul 2022 17:33:10 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93A89B8799; Fri, 22 Jul 2022 14:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=LHeOXeT2W/l26vCWMiypCMzsZd0II5Y/bjZZQqtBe9c=; b=enBUd5BzRu/a/DkjWRR9Ci9tHu ZqHlMUlzJ/iluyoxABxfiVcj30jIDRCSXnvSJu56AEtmYpiDu8BcRWWXlxJaLVnoaQYGiu1IhCLKK tFmId6PMo/8h74JPHy8l+SWfbxVxJZUxI1E91qpxn5TTYXKKPkEJL6Q3Fg3nf0/bx6kjoDDY+0jWt EOjfJVAaaKP/TcA8iO3VUDobKEDERtPJqrLLq8yUcA+fkgQv1nya/qoSJMIp/puCy5By9iZYuxYJD jXSWbhf/NOsE70xCqYx1w1Q5NxdIz78xXqsvVbNOYroJEX4lm5cQA8kKiZWH8Ibb6Es+AGvQnUCHC 6P+M1e3A==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oF0GW-00GdIv-1Y; Fri, 22 Jul 2022 21:32:56 +0000 Date: Fri, 22 Jul 2022 22:32:56 +0100 From: Matthew Wilcox To: Xin Gao Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hfsplus: Fix code typo Message-ID: References: <20220722195133.18730-1-gaoxin@cdjrlc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220722195133.18730-1-gaoxin@cdjrlc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 On Sat, Jul 23, 2022 at 03:51:33AM +0800, Xin Gao wrote: > The double `free' is duplicated in line 498, remove one. This is wrong. The intended meaning here is "trying to free bnode which is already free". Please don't send patches for code you don't understand. > Signed-off-by: Xin Gao > --- > fs/hfsplus/btree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/hfsplus/btree.c b/fs/hfsplus/btree.c > index 66774f4cb4fd..655cf60eabbf 100644 > --- a/fs/hfsplus/btree.c > +++ b/fs/hfsplus/btree.c > @@ -495,7 +495,7 @@ void hfs_bmap_free(struct hfs_bnode *node) > m = 1 << (~nidx & 7); > byte = data[off]; > if (!(byte & m)) { > - pr_crit("trying to free free bnode " > + pr_crit("trying to free bnode " > "%u(%d)\n", > node->this, node->type); > kunmap(page); > -- > 2.30.2 >