Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5122627rwb; Mon, 31 Jul 2023 19:05:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlFPUKob/Gpi2/CztIu20EJGEEQOvgGShWHrmZoI6r1CgELnOmOL+gfKzYWqfFsbPmUyykpY X-Received: by 2002:a17:902:ec83:b0:1bb:cf4e:ccd with SMTP id x3-20020a170902ec8300b001bbcf4e0ccdmr14757054plg.28.1690855539974; Mon, 31 Jul 2023 19:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690855539; cv=none; d=google.com; s=arc-20160816; b=Aj0X8D+WdVLD7SeGv7KaVrDIkNY6SZz8P8+ft9KvCMzExaSCVTk5CzTmpxoHz7E4Z7 yvIgyLoIQca0sFcPA4/FCcykg4AW9InwRWn2tXDgz/2nwPAFYrpRJlLEaxjDvO0/O12E HjJD6f8Qly9qs3EoI3f9yyFlOOW1eKXsPh/snAtt4gbID0lk7C72WuF/KBZSeTDOvAy8 JpjnY7+aNHixvlCCnrm0W3aN4mK25rlKNRtQV1v3RsV30oZYoE2dCV7xTog+6al1QZvC pdDFPBjB1GJcXuizBpl35shU1xzpqBFs6Tt7zVACBVl6hF6MikmIw3ygxo7MMe3qwXih vE3g== 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; bh=JjSELvJdx/pGwr4GV1PG6NynYiObRXf14ILMWP32gl0=; fh=utwb+wCbOJc0OXbW7WFWTv0fwijRY7AINodfhC7zuFo=; b=k0D3OB9uwKzqSl7hVnQnLhAefK891yEnRTvm2QuY8SJWBZxbBzejBNThjEKmukzi32 KiMx83hKXEdf8EZjwSRs8JRGcpAKXwIAJQUW1a1ooHohgs+Z6RZ7XhMOJpSE20uC4pZl sZI/sBokBJdn49uXAGi6kWIbJee4AJfIvOYoIanX3nFxF4rdAOhOjYVJqQkiOrwvgDwf M9ob9CHSeYXa9UKFZ3MtP0i2aBb8C91xkywb9HOHp4glRQCIZL5Bd5B7r/lIR7GhV+OE zfkV2l3R1uDSdmoqZsT8PxsnAm7AqPYLJaPj34mQcuUZq43kHs+/WhuLz7eMRH/JI/tl VWFA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a170902ea0100b001b8a3a8d707si8507459plg.573.2023.07.31.19.05.28; Mon, 31 Jul 2023 19:05:39 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231948AbjHABry (ORCPT + 99 others); Mon, 31 Jul 2023 21:47:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbjHABrx (ORCPT ); Mon, 31 Jul 2023 21:47:53 -0400 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A5F6BD; Mon, 31 Jul 2023 18:47:52 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VoiopYR_1690854460; Received: from e18g06460.et15sqa.tbsite.net(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VoiopYR_1690854460) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 09:47:49 +0800 From: Gao Xiang To: linux-erofs@lists.ozlabs.org Cc: LKML , Christian Brauner , Christoph Hellwig , linux-fsdevel@vger.kernel.org, Gao Xiang Subject: [PATCH] erofs: drop unnecessary WARN_ON() in erofs_kill_sb() Date: Tue, 1 Aug 2023 09:47:37 +0800 Message-Id: <20230801014737.28614-1-hsiangkao@linux.alibaba.com> X-Mailer: git-send-email 2.24.4 In-Reply-To: <20230731-flugbereit-wohnlage-78acdf95ab7e@brauner> References: <20230731-flugbereit-wohnlage-78acdf95ab7e@brauner> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Previously, .kill_sb() will be called only after fill_super fails. It will be changed [1]. Besides, checking for s_magic in erofs_kill_sb() is unnecessary from any point of view. Let's get rid of it now. [1] https://lore.kernel.org/r/20230731-flugbereit-wohnlage-78acdf95ab7e@brauner Signed-off-by: Gao Xiang --- will upstream this commit later this week after it lands -next. fs/erofs/super.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/erofs/super.c b/fs/erofs/super.c index 9d6a3c6158bd..566f68ddfa36 100644 --- a/fs/erofs/super.c +++ b/fs/erofs/super.c @@ -889,8 +889,6 @@ static void erofs_kill_sb(struct super_block *sb) { struct erofs_sb_info *sbi; - WARN_ON(sb->s_magic != EROFS_SUPER_MAGIC); - /* pseudo mount for anon inodes */ if (sb->s_flags & SB_KERNMOUNT) { kill_anon_super(sb); -- 2.24.4