Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5059709iog; Wed, 22 Jun 2022 11:06:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uEPpoTujvEDEIvEU4cH7FnflW1fTS2VuyA3ShnCV1qLGoJoSyLd3ZwGgB3nKqhceVrorBi X-Received: by 2002:a63:884a:0:b0:40d:180a:2fe2 with SMTP id l71-20020a63884a000000b0040d180a2fe2mr4009288pgd.32.1655921196609; Wed, 22 Jun 2022 11:06:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655921196; cv=none; d=google.com; s=arc-20160816; b=Xr8EzHCxbTXu5Vx7ZBIkbGOnwvcKTOWzvjJUnoUUsavCytbWO67oBCLnbS3YusnJL6 CnjC3r6ASQ4hrD9bJCMOfnFlwqyt0VRD7ofEsHcn8RpQ+3NOpMe1KotFTKirXMqB/wXD hVu6mKikyxlTahji2S57ZovHJLhzhWmaZ16NBItVkjbGxP5BzIMv8LDv8AyGs4P21UE9 J0h2C7K5vod9EJeptAxI65b3z9JJ60mg1asHrbQf+bvUi8wNgLAeiVBEMegMXpord+bH +i+KVOBB0+zlDfOmzhdvqrmvNkLD6/ioNv0sZvmi85MY8xeZpCVSkl3pW5zSPl5iQKIv B+mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=25UMif2KJVLcBXrmfApxtfUU35dfSSw3fpcCICtxyW8=; b=EdQNHcOunbZh2uzUfDp/wRZtDyyzK5jYobkHtVn8rerlb/cZNWRLLwMXtNvEoFj7s6 A8YRcpz97eFUFQEu3pxC3wgxyWzXOnyFFWFkahxYtjycfS8PhEdq5UxI1hk5SbVRTP25 BCor4ByEFt3rDYE5IYb4HQoz1tU5YgYlsqAxMsDCVNiore2SE6X0feOJH6M8f7ViHv99 5YvjUme1e9B+IUbOe8Y7+/TD2EoLYkyhkH5DXf5CxNAfda2z5GKyM5JYBzTrqeYbZnIG ddwoDpLc+c6BsqRcY73Mvp/1iWRR7wvHe+3PCI9kvUJntyjcr1HflhjqbTpbcneUTDij Xadg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=VvwAIGoD; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j135-20020a636e8d000000b00408d37d1f9csi23647487pgc.320.2022.06.22.11.06.23; Wed, 22 Jun 2022 11:06:36 -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=@suse.com header.s=susede1 header.b=VvwAIGoD; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377344AbiFVR1L (ORCPT + 99 others); Wed, 22 Jun 2022 13:27:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359637AbiFVR1K (ORCPT ); Wed, 22 Jun 2022 13:27:10 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD62727FCE; Wed, 22 Jun 2022 10:27:09 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 7445221C7E; Wed, 22 Jun 2022 17:27:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1655918828; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=25UMif2KJVLcBXrmfApxtfUU35dfSSw3fpcCICtxyW8=; b=VvwAIGoDz+l1mAkHZ7Ci8GmQbbrSdA4ZL7MGpC7pXWaXvzYecJ0zZa3bjiNVxhWwXxQPOi c1ahBZimSpktVbRlaNbZivz7OeL07LjMauFEFAtU+9izL/QdsVNVvawoLRT1F257ZjbKfn ADVQi1piODXNJyF1VM1Ev4FipKeeVEk= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 47A7913A5D; Wed, 22 Jun 2022 17:27:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5qGOEOxQs2LFKgAAMHmgww (envelope-from ); Wed, 22 Jun 2022 17:27:08 +0000 Date: Wed, 22 Jun 2022 19:27:06 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Yu Kuai Cc: tj@kernel.org, axboe@kernel.dk, ming.lei@redhat.com, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com Subject: Re: [PATCH -next v5 3/8] blk-throttle: factor out code to calculate ios/bytes_allowed Message-ID: <20220622172706.GA28777@blackbody.suse.cz> References: <20220528064330.3471000-1-yukuai3@huawei.com> <20220528064330.3471000-4-yukuai3@huawei.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wRRV7LY7NUeQGEoC" Content-Disposition: inline In-Reply-To: <20220528064330.3471000-4-yukuai3@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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_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 --wRRV7LY7NUeQGEoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, May 28, 2022 at 02:43:25PM +0800, Yu Kuai wrote: > +static u64 calculate_bytes_allowed(u64 bps_limit, > + unsigned long jiffy_elapsed_rnd) Just noticed with all series applied this argument needn't be called _rnd. (It's a nit.) --wRRV7LY7NUeQGEoC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTrXXag4J0QvXXBmkMkDQmsBEOquQUCYrNQ5QAKCRAkDQmsBEOq uRC5AQC2JzZNZsl22etM1LtHU6Wno1hgy9s1Fj5YailfIQfTJwD/c6sCNnhojsjQ PCgMBZaodtkg4p+8C/tt1eXOMBvsGgo= =UiWF -----END PGP SIGNATURE----- --wRRV7LY7NUeQGEoC--