Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1615747iob; Thu, 5 May 2022 05:14:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK5ZxiauEfEKf91Q/kXLnBW9kYezDKMWEaB7hPfG8wEe/qw0hcbh3QD0FTxG4saQeQP/kM X-Received: by 2002:a63:1c1d:0:b0:39d:9a7c:593b with SMTP id c29-20020a631c1d000000b0039d9a7c593bmr21678576pgc.157.1651752842718; Thu, 05 May 2022 05:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651752842; cv=none; d=google.com; s=arc-20160816; b=eTwCzoRP7w9QdYebvvzcQv7Cdo52mzL4wutcwTrVCVEObD3W2RR8wanSkYeR7jUyw3 ENZcSw2K8786auXuvm+R+pAUlOIFsk8hBYtUE51A17U2Keewl6hfknJqLnBg5bQpGzdL R+a+fXvvjF+cWZGMpOxJzL4TiV3qjdM3Jg1IEt5/aJPyRk01bS5pBGxUQ4BoaalFs7tC HzEUAqfWwp+ep2fI2l06W8tGCuaSilZyUYMoQZ8TjocwjDQV4y+O9AKhDnLJt5H7vxFO pFoNNa12BgqUDIDGjL24xBUprxvSuBeADVwCvoL3feAYA7ZprnKY5wrJrmL1FtGKDN+F KR9g== 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:to:from :references:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature; bh=pXPYJ+fgOV1Zl5Qb/eENI/cPV1QeM/WC1l9xJtBkjrM=; b=DhqazMSJSjM5xDx23PY1UcozoSSUM4GV0HnzJOg04Q0XgbFU2amnROoZb+3lqP/m8I nMKIvjwzPzCf9wVR40NdJusKGMz9po3idC68MtXNFYZZOaJvROTxbAhbFGiRPV3rzxCu A30GqDsN/t7YtYtAj+gEVVXuhslYZWK67CQ9gzE+eoVK07nZuqDccGhycjNArsLPzYKr RXZmtHPUwHceOBhLfebAIbsQ8yb5djcVuVj/Xd+kG7jMFGzB/55oOzHvZ4ERL358XLMw SZeyZix16KmM1PnqKP5dN9AVa3fWHD5nivU2ILjoXrcKA3JhzTjMgUtHY/G/RLkvNj5H +nEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@suse.de header.s=susede2_rsa header.b=eG5CTnel; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j21-20020a633c15000000b003aaac06ee1esi1385906pga.605.2022.05.05.05.13.47; Thu, 05 May 2022 05:14:02 -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=fail header.i=@suse.de header.s=susede2_rsa header.b=eG5CTnel; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357440AbiEDRbX (ORCPT + 99 others); Wed, 4 May 2022 13:31:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356862AbiEDRJr (ORCPT ); Wed, 4 May 2022 13:09:47 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADA4F434BE; Wed, 4 May 2022 09:56:07 -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 04B9F210EC; Wed, 4 May 2022 16:56:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1651683366; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pXPYJ+fgOV1Zl5Qb/eENI/cPV1QeM/WC1l9xJtBkjrM=; b=eG5CTnel4TjKB2USY2SAJ9eCwNU8e67BmdrokSpRYoTmgLAzzmsUHj1oj9PZ7Y21Kz3Jxl rNcQrR/iu03Ksv9UDz2DiOX+OExKEGybsXHUSvXQhuMNJUSykJBVAVQQAxBu7tmS7abwqO 2BNB990G7wlwcuuGKAan3tNmNGDC/Nc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1651683366; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pXPYJ+fgOV1Zl5Qb/eENI/cPV1QeM/WC1l9xJtBkjrM=; b=CESc2MRtGMZZ4cBcssfZJruJS58Pp5zWKoK94jfLH5Ha6vbCUnmI1ZdLYnm5zvXU0kF351 9woB0nHfywC6X0DA== 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 7B2C8131BD; Wed, 4 May 2022 16:56:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id RAGMEyCwcmJAVQAAMHmgww (envelope-from ); Wed, 04 May 2022 16:56:00 +0000 Message-ID: <1286b88c-7068-d23a-1d0e-bb71efbb1258@suse.de> Date: Wed, 4 May 2022 09:55:57 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: [PATCH 03/16] block: add bdev_zone_no helper Content-Language: en-US References: <20220427160255.300418-1-p.raghav@samsung.com> <20220427160255.300418-4-p.raghav@samsung.com> From: Hannes Reinecke To: undisclosed-recipients:; In-Reply-To: <20220427160255.300418-4-p.raghav@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 4/27/22 09:02, Pankaj Raghav wrote: > Many places in the filesystem for zoned devices open code this function > to find the zone number for a given sector with power of 2 assumption. > This generic helper can be used to calculate zone number for a given > sector in a block device > > This helper internally uses blk_queue_zone_no to find the zone number. > > Reviewed-by: Luis Chamberlain > Signed-off-by: Pankaj Raghav > --- > include/linux/blkdev.h | 9 +++++++++ > 1 file changed, 9 insertions(+) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer