Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2696723iob; Fri, 6 May 2022 08:31:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3dnMFkk+zhBW6ti8bqz25t7bQM1TJoXeMLKcrVzzHmTptu+FyirD6oy1llqooKFYBI6dP X-Received: by 2002:a17:902:e546:b0:15e:b129:7d8 with SMTP id n6-20020a170902e54600b0015eb12907d8mr4207501plf.138.1651851067429; Fri, 06 May 2022 08:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651851067; cv=none; d=google.com; s=arc-20160816; b=WKwfnWTg96ecK7/nib1DfrZOqGJJaGcUHweYTWZhqIrrHsQZYqIJhJ+d3+tdTrDY/E Ban3IOJr+xDSb1MLgqZWpIqMy6kaqkJn7XLs0dvXzNDCFdzXG7kf3TDMFLsTLLvVzZ7R LPvsqs1IhrbX8hcsy7nk5g9NhuabMzeLwq7v8rVED+ONMAvCYVuZjYM547ZGv31/ZnwN 0oRRiNEtQT/o1OVMoiVJM9LnWPBoHTuLIdH/0o5Vz95sh1j/TeLmqFLqTzngCShKSrzm tt+XHTH4CGQG5N7Fn2HzNexgU0ERqq2vKuHj2LkD3v+blGzYoWMNJc6p5+Dmz+tj3m5w DntA== 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=zAXSq6bhqdolheY4p9cT7aP0Oy4T4nVBMUNySprQGJg=; b=RkDZX2TaHSbTe+a2yn8E6Gpvc6j690m2bB/zGEtKZTj+xaB/eaiuuArQz7jLdG2cP/ /obcKA3RVHW62q+5Jkee2udFUPKxIMAYUX2HdJAaV3uiFru4zxKYZYSG0kyqW+K4iBA9 /2uAGKfiky8cF4aJu1Gd9DGEZOLmEGLLG7u1zbIstGe5mDCWw4adgVKKrHhzPjZzUdnO /Uh4Z/VtaHvqNXi8fSDgig3v9geu8XztIfSEPlvlmJJEAzeqV5ZjaBzR9UBLvzBryJOw fwDb8q6LGSOSYE6+RIoz2skbcc1AVavVY0fhyGVnNaP/VxpSMEIaNoHmQyX8k0vNljq9 cJ8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@suse.de header.s=susede2_rsa header.b=vE8sRwFm; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 g7-20020a656cc7000000b00383f92e1f96si1491877pgw.79.2022.05.06.08.30.52; Fri, 06 May 2022 08:31:07 -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=vE8sRwFm; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 S1357928AbiEDRZQ (ORCPT + 99 others); Wed, 4 May 2022 13:25:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355254AbiEDREN (ORCPT ); Wed, 4 May 2022 13:04:13 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D46C4DF76; Wed, 4 May 2022 09:52:53 -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-out2.suse.de (Postfix) with ESMTPS id A85371F37F; Wed, 4 May 2022 16:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1651683164; 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=zAXSq6bhqdolheY4p9cT7aP0Oy4T4nVBMUNySprQGJg=; b=vE8sRwFmAdvIKQHGW+mHNYbQfMEMAdlaQcqhqiM2yfOAVy7gsn0V7HsTwt2w4B8L0AJRz6 YACrATxksuCgUwQY7a2toGbDwLHkNgFwY1Axbzv/svz5yo6k6d0wWChaM9KgkHwDzDQyNJ HebomPomfBLU+oqZC0S2RJRZhW3Ge4w= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1651683164; 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=zAXSq6bhqdolheY4p9cT7aP0Oy4T4nVBMUNySprQGJg=; b=sCEh2RvidNwfAvfw21e903UN4kb+NKkiLtsl30cweyiBvUgCEZuzXUNUNyuzxIG3pvvgQZ OGkJos+YlE3QW6AA== 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 49B43131BD; Wed, 4 May 2022 16:52:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QTNfB1evcmLrUwAAMHmgww (envelope-from ); Wed, 04 May 2022 16:52:39 +0000 Message-ID: Date: Wed, 4 May 2022 09:52:36 -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 01/16] block: make blkdev_nr_zones and blk_queue_zone_no generic for npo2 zsze Content-Language: en-US References: <20220427160255.300418-1-p.raghav@samsung.com> <20220427160255.300418-2-p.raghav@samsung.com> From: Hannes Reinecke To: undisclosed-recipients:; In-Reply-To: <20220427160255.300418-2-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: > Adapt blkdev_nr_zones and blk_queue_zone_no function so that it can > also work for non-power-of-2 zone sizes. > > As the existing deployments of zoned devices had power-of-2 > assumption, power-of-2 optimized calculation is kept for those devices. > > There are no direct hot paths modified and the changes just > introduce one new branch per call. > > Reviewed-by: Luis Chamberlain > Signed-off-by: Pankaj Raghav > --- > block/blk-zoned.c | 8 +++++++- > include/linux/blkdev.h | 8 +++++++- > 2 files changed, 14 insertions(+), 2 deletions(-) > 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