Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1814761pxm; Thu, 24 Feb 2022 09:49:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxB+5w7SBzs+kf1LyH7wefHEBMy2vI3V9i21NPV7Ziqnemv6otYyshuMmwLL+nigzhkC5xB X-Received: by 2002:a17:906:3905:b0:6cf:7ef5:fee0 with SMTP id f5-20020a170906390500b006cf7ef5fee0mr3100339eje.307.1645724984952; Thu, 24 Feb 2022 09:49:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645724984; cv=none; d=google.com; s=arc-20160816; b=gP/CGB99zDBIWSP0sF0ZgRz0UdqQda+lpPo0zMoKuk+gvgZe/WiLq8eenVm3MbG5if lUsDgzjrcvRFBnHFv2MI3g+Jlw8rfnhsbHntFsWsSWKr501FBf7bOZYGF6/1clzcldsn W7+Z+9lGfFwPRoj+DEbPs+Y67HhlRP1s5OTT2c34YRruDBFGrqxXAkQq8yKWFmz+E0oe cSmIH6MmK6Bo1/IMGysMqxfdp7wE1cJyZKPoFTxjfhZCKE42OLN+L2R0Hk8BC+O8RKjM T2F1YeowdL+ev2gQFfimXKSKMaYw6/fnbltQrv6onwBygNFM1k+JET1K4xMG/FIlDU5M VNCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YN3o5AHfbGVmbeaZUJjmbDqTCWv/jzMc3EILlut6Oww=; b=i+VxgPRbrZP/QvTSsWiJsgdqbtJlk+9eS1pZUaStCE0by/tu78ZFgcfqclHTh4DzoM V5SPaLDRRSqA5etUkDnTnL2mxCzytvQ1JllTGMR0rEOXXQet9QWO2P5MscclzM+KFa/D 869w+bI0A4VCHKpMQISk5vjDbKBEKNmx60908YHLY60wiIzmkIJzgJmMI03scly01Gzg fVF8b0Q2l/UTxSGYRwQz1RF91jei7+3VJBSuyqA2m1sAVYS0SvCeRKm7yfQOvgmJMYmD jj7i5zY03zMp8DQUxK3WHPJ7Pvmb2xyNdRyBJDj5Mvxtgi33bj2u5CDxdg4pfG2w9JLz PypQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=a1WdcUy4; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn25-20020a05640222f900b003f8d5c26c22si118347edb.618.2022.02.24.09.49.19; Thu, 24 Feb 2022 09:49:44 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=a1WdcUy4; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232159AbiBXRbZ (ORCPT + 99 others); Thu, 24 Feb 2022 12:31:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230400AbiBXRbY (ORCPT ); Thu, 24 Feb 2022 12:31:24 -0500 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B7D2186B9C; Thu, 24 Feb 2022 09:30:53 -0800 (PST) Received: by mail-yb1-xb2d.google.com with SMTP id b35so865187ybi.13; Thu, 24 Feb 2022 09:30:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YN3o5AHfbGVmbeaZUJjmbDqTCWv/jzMc3EILlut6Oww=; b=a1WdcUy4rP1D+h2JWaW3NZ7cj7mMuh72pwuxNzL9nm3dxxunfRyAUaKgFx/ynm5sJk Fb1eD1BUAyDPcJJIbAP+2TYtWC0umJJBRstjSjWNhhYYMgeLf9AwliKwI8oye4bFPRVX /cERCPKOAMd8igNl35lFYoXqAeAiEv5fxAii3NUBubgd4ffDG9xJuES8SyZbJbORPbyz Qu35wM6y4ILBESw64aV6Qg5yPH3fmmw3qsoMAUgp4NkVgt7qryVSYkLc7L3crqEnNA7H 5wi2UDdYC8vTpVkeMgL3pw1bhWDOOFOU6OTN0oYLmJPHo1cqf+lmkaDhGf5CHGp25mPa avXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YN3o5AHfbGVmbeaZUJjmbDqTCWv/jzMc3EILlut6Oww=; b=62NaEoyawj7nHPCFiyFvEB2/XSHFwAG/93cho+K0PFgYLPQj/74ilMR5V+BOLw1Rry ZPTXwTc1R9kOtqYaWFD1o6lYgybibw1qzb0pWk1ZT1jlgEOPxw3s5shKPno18qsAXQPg dGfwguUDYPdoz6nuUh4tLoRAxFH3XZ2CrIcRToRThqTl4krl/gwbhO7h98ImP1x5xwBu 5vnY6uwLsHYmeTZnZ+ES0zlCvjM/aCTa2/J+4Sa76rla2NoorWmK7FqtXjU4DG/kpx45 QXSnVlZiQsFYIo4Sugzd6mNMcEONdziO5ACsDB3khKWwzRYVEVqTepaLveucOZBJTUIu SeEg== X-Gm-Message-State: AOAM533LLNtG9BjcMkQ6oiqAB98gDb9CsIzXhdwVUxjbyrmUvzeULqUM B73sH/123JBipilcL5c7h08NEQYIW/fC813tspY8KJqbQTg= X-Received: by 2002:a05:6902:567:b0:624:649e:1b14 with SMTP id a7-20020a056902056700b00624649e1b14mr3297272ybt.84.1645723852614; Thu, 24 Feb 2022 09:30:52 -0800 (PST) MIME-Version: 1.0 References: <20220207103738.103661-1-jiapeng.chong@linux.alibaba.com> In-Reply-To: <20220207103738.103661-1-jiapeng.chong@linux.alibaba.com> From: Ryusuke Konishi Date: Fri, 25 Feb 2022 02:30:40 +0900 Message-ID: Subject: Re: [PATCH] mm/fs: Remove redundant code To: Jiapeng Chong Cc: linux-nilfs , LKML , Abaci Robot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Jiapeng, On Mon, Feb 7, 2022 at 7:37 PM Jiapeng Chong wrote: > > Clean up the following smatch warning: > > fs/nilfs2/segbuf.c:358 nilfs_segbuf_submit_bio() warn: ignoring > unreachable code. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > fs/nilfs2/segbuf.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c > index 9e5dd6324ea1..50d7e2e4daed 100644 > --- a/fs/nilfs2/segbuf.c > +++ b/fs/nilfs2/segbuf.c > @@ -341,7 +341,6 @@ static int nilfs_segbuf_submit_bio(struct nilfs_segment_buffer *segbuf, > int mode_flags) > { > struct bio *bio = wi->bio; > - int err; > > bio->bi_end_io = nilfs_end_bio_write; > bio->bi_private = segbuf; > @@ -354,9 +353,6 @@ static int nilfs_segbuf_submit_bio(struct nilfs_segment_buffer *segbuf, > wi->nr_vecs = min(wi->max_pages, wi->rest_blocks); > wi->start = wi->end; > return 0; > - > - wi->bio = NULL; > - return err; > } Sorry for my late reply. I will send this to Andrew to report and fix the regression on the -mm patch series. I'd like to change the patch title to something like "nilfs2: Remove redundant code" since the "mm/fs" prefix does not properly represent what it applies to. (this patch may be folded into the patch that is causing the warning) Regards, Ryusuke Konishi