Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp813429rdb; Fri, 6 Oct 2023 23:38:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElEP1c8GZ7IV4wyS3Bg+l0XjHdxPN5tfMcZMGPUNhINm6X7kBjn3ZK/rJhmAAeJFnsWsfb X-Received: by 2002:a05:6a21:6d88:b0:162:d056:9f52 with SMTP id wl8-20020a056a216d8800b00162d0569f52mr11906400pzb.14.1696660695762; Fri, 06 Oct 2023 23:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696660695; cv=none; d=google.com; s=arc-20160816; b=Ca1xS4qgzzb/sY1IeT9IL8+0htf/XbJuyHeMxpqKDfEcjvou2nRlIqdnmi+RB6ZT7s Qr4bmqaJRDAIWsA3uk+fiRVDlTehFs0jRn1nKYYsRD+M8fA6QtqBp5nQ/L4pjJJ8UkHC /OzQgvgNbEHIKHl2ThUhzc+2sXdBmyMNjQRFXKHdZcy9PVAumFb4kgh9Ji5pIQfZ3OLR rLtlMoJc7SrHmvqcs2n9lmaj68WRLvFN7vyD48KdDXq0BadeZMZv3biY3g5oma1YDhZJ bHi/HcQmzK6S+ydhq9EpiylzWiFzi7aGlgvjC1Hk7jffighOFSOI6iQ4fI2LdUI1GDmO 5PsA== 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=340S/dQR8J0AhtcCu8/K8Cw1vtlsfYeaKogvAu8MI3I=; fh=G4Pxduviz9cgWyQEq1k2zqRNcx1tgxoAEtGH9VlDFJM=; b=YHIwwzzU8RNc5EvbXMi2OOht1/IuhKiKSXarOeyrZ/fpdbQEhQpVvjTsKqbPxx/+cx iH4ql7ssmz22IVBE3pn/ZNtT0x3ZHSg7ZjeztJTWwtbYUyLmH704rFJd+UV9VjZj1cf3 nULn77BeBzXOiPcAj3yrzePNZxSLZSl3t/wBfI7qsPBfrCEXl8NhKLmEjIPTxOYA1X52 o9ju7RCfikjkIpq7MgOgXUsPvuVQGPbwGQ0wnrzCGzWLCXJfpz7DoqOAP/XA8bcVs3wh +fFZbE/iAkvrQn400YTDM/pkMFOCRIFuHmmwJQ2x574wSgkar8EA9UekvKtZN4MkSzhv mEqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LYKw1oSS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bx24-20020a17090af49800b002774c17dd73si2524882pjb.11.2023.10.06.23.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 23:38:15 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LYKw1oSS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8ED928032EEF; Fri, 6 Oct 2023 23:38:13 -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 S1343582AbjJGGiB (ORCPT + 99 others); Sat, 7 Oct 2023 02:38:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343561AbjJGGiA (ORCPT ); Sat, 7 Oct 2023 02:38:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8FD0DB for ; Fri, 6 Oct 2023 23:37:58 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B88BC433C8; Sat, 7 Oct 2023 06:37:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696660678; bh=haeoZMfXVfuibJKXHZqwDbIGTXzIAr3k6IkAQRF6pGU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LYKw1oSSSpwkcD4fhCwHni6Ndss572NgxpTqVxC5jgsE7TlYs5RlDFU+9avG9S2cA noeCbcswqAJHHYBGO3AUMG6Vg3UPpv/ijWYL2J27VBFkbzJ5bDLlppgNxPt6b8GiBi ubhgW9omtxuu5SqZuooU1fBG2xlRQTrWxP5Pgtqh8TtwJu6gmCD4gBhvHclhGPva5o +CA8Q8KNQOt0ITHZbDpzDj7mGVmwIClECbKA9imkjRa9oonpRG0os2x9XW2PKVmVhU lW9JRXFD8rGPNDToPtMb0VOavsgimBSlNUgTT62qczTGD3XTVMAhamwgqHxpw7YyuB lJrstfDNVDK7Q== Message-ID: Date: Sat, 7 Oct 2023 14:37:55 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [f2fs-dev] [PATCH] f2fs-tools: make checked node progress correct Content-Language: en-US To: Daeho Jeong , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com Cc: Daeho Jeong References: <20231003210754.275175-1-daeho43@gmail.com> From: Chao Yu In-Reply-To: <20231003210754.275175-1-daeho43@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_SBL_CSS,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, 06 Oct 2023 23:38:13 -0700 (PDT) On 2023/10/4 5:07, Daeho Jeong wrote: > From: Daeho Jeong > > Let's say we have 100 nodes to be checked. With post-increment of > checked_node_cnt, when we reach the last node, we cannot print out 100% > progress. So, go with pre-increment. > > Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks,