Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp22600pxb; Tue, 12 Apr 2022 15:41:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3czQQ3UIaR0ajpkX7lsbjOrnHzN06kIwd5Rx/VfDWLVMHLQgXsErxzJvMfbzL8fLZPQYV X-Received: by 2002:a17:90b:3ec3:b0:1c7:24c4:e28f with SMTP id rm3-20020a17090b3ec300b001c724c4e28fmr7492540pjb.191.1649803301065; Tue, 12 Apr 2022 15:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649803301; cv=none; d=google.com; s=arc-20160816; b=0mGHpRQIzrwOzpq718Ox6+mW0mYLl3aS2QBJXUCSp8QezYaBG+NNbZbcXCdzBtcplH /u2qgjPbE8sQKvZaG1kg8WvOulERAmyPPed/rPxkP/pReBx2e7YWeudY63v3S9fm2Pzr XtiqbOBtBEiH2jlQd7IT/TbDrWAkwYx0m66z82uFb57zjjhcMNEzPL9ERgBMOpdQ6zKZ plHDJTTZuAWeNP9fbQ4Q5DfwGSLNOGkaxRPyyrp8anC+9+iy3UV6M51I0fg3xfW0I5mD leTVWBG3kH6aTx0/Nu/fUI9OdUembvUAiFuCkP+xRTPTV4isplX9urCQxEhDx4xa9ler EtKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=roq4oqcVsANyaump99KHfP+In4m6tEWKl6BFB/3U+OY=; b=G72fFUjGQU0hpkO/1Yje6BcIQoD4Bw6MYSC/Oo9qaCEaeBH5Lc2qXJ9DAjwuY8UfPz 1wnyIDhHZ6tpN3hjyddVEsEQ2lSZQy9uASyj0LHRXHv5YPpgFEATs6+8pol9iylt1uuV YsxXy29vuvsXYuX6ifFlv8eTOQWJlQixhaVJCfd+O1jMneIFfltb+wtJVNE0uWmXfN5O WseebsVnzH351R9DOJOlY1b9Gv5R1VzZPDU/acRY+8O6fVCvT7l3qFWuLMha78YVtgbT dzc2j1YVk6OXYzyll/SBerlNdONEVNPTJ1OiRung8caD5rUpz94kcR5uhA6+l1JMaZwy r7VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilvGxvnk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u71-20020a63854a000000b0039dac8fd257si891199pgd.386.2022.04.12.15.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:41:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ilvGxvnk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 85E731ACA7D; Tue, 12 Apr 2022 14:20:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377539AbiDLK4l (ORCPT + 99 others); Tue, 12 Apr 2022 06:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356710AbiDLKph (ORCPT ); Tue, 12 Apr 2022 06:45:37 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F2185658 for ; Tue, 12 Apr 2022 02:41:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 48A7BCE1C25 for ; Tue, 12 Apr 2022 09:41:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 777A4C385A1; Tue, 12 Apr 2022 09:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649756515; bh=pi+QmDU26pju7mZ8Fvy5R9dpn1wF+2Rumy0pZTv2pgc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ilvGxvnkvwBu57bFv3FUrX2dp32y3SHgWtdPrIddztOZQet2W4VmhdmcvAyjutvFe p4sfXzs1aUNXmoX37Uov4GvETy9t1DX/0L7U+1ryZOZqDAa9d8FEkJM2ezeOYkmUS2 L3lZVodMWYTrkoJ7wFvV7F9sVJZ2ljCH1fyKkMLu/vg0SzyiaqIE30H9c/EOmYnPPZ Cwfgy6SENRltROBLMdu/e1fSBtUSpPDOK7DYeigIS2hSvxK7ofwOEXWNP+z0DH4glB vwYk+Wc7UCPgirQh1aqaBWlxPtHrPHSzSOeAmlhafxOWUrtjn32kM7iZfNQW/nlvDj pe61lKkOclNlw== Message-ID: <4fe435c4-6b6f-0223-66b8-45f9549cdc52@kernel.org> Date: Tue, 12 Apr 2022 17:41:51 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH 2/2] f2fs: replace usage of found with dedicated list iterator variable Content-Language: en-US To: Jakob Koschel , Jaegeuk Kim Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Mike Rapoport , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." References: <20220331221650.891790-1-jakobkoschel@gmail.com> <20220331221650.891790-2-jakobkoschel@gmail.com> From: Chao Yu In-Reply-To: <20220331221650.891790-2-jakobkoschel@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 2022/4/1 6:16, Jakob Koschel wrote: > To move the list iterator variable into the list_for_each_entry_*() > macro in the future it should be avoided to use the list iterator > variable after the loop body. > > To *never* use the list iterator variable after the loop it was > concluded to use a separate iterator variable instead of a > found boolean [1]. > > This removes the need to use a found variable and simply checking if > the variable was set, can determine if the break/goto was hit. > > Link: https://lore.kernel.org/all/CAHk-=wgRr_D8CB-D9Kg-c=EHreAsk5SqXPwr9Y7k9sA6cWXJ6w@mail.gmail.com/ > Signed-off-by: Jakob Koschel Reviewed-by: Chao Yu Thanks,