Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp953015iob; Thu, 28 Apr 2022 14:48:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtRt9UJOeVrm6OP41dlbIHfFA74jUDGXQf8eBLwUuioEVbIg4Oc+n7EF37hRwoRkQDSOij X-Received: by 2002:a17:903:31d1:b0:159:804:e852 with SMTP id v17-20020a17090331d100b001590804e852mr35353859ple.19.1651182517247; Thu, 28 Apr 2022 14:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651182517; cv=none; d=google.com; s=arc-20160816; b=Yp6HYKmdHM2+/8/y249e35yhESaq4+C3uKvG/vPn/JThjJmcSWn5xoLAocU+kI6ryU qFKDi0jrdTJ3IjTkRfe1SAsxsjz0jRDZqIs3swvDJxlJFAguBPm0l+quwHBlyF6+xUKm A5c041vWRKc5WELEoCScPdwZ5Xx2jwIE3C0/F5MqtwUW6ncNszHGuxEUAt6S5iLNoxh3 G8ssCboIHi62hjdOiBgUcGPlb1WwNujC5YB/U7iwXuk49G7iN3hknZcetuICnt5vHoP0 E6zHISHiuABZYp0ORe3YEIT79eCs1snPK+EO6Z+WRRHh9wiGQY74BpKXtiYyT6fo7/6i IwNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=mSww8MNcP9LQau6omtTYAJnuYJvatHm4P/3v9FrFuEQ=; b=VBYYTDdbLOtosxGdagU5/OLMhdX7/pz9PVN7jan2CYULOqxJL6nzOnmtpkx8aagVTS VX+cv14XXtX1/g4+XNOdwexKYXcP9xo5wz0UfSrqcNdjfU0VfeHrxzh6TcbcMsrCsOD3 6Nt7wrxTujOxYTkIMZtaQPeLgrtIqit3rElQYzKftfgVtj2eAwd84qrnaGspCcpU/zzo mCGOJdz9AwJLSK8A90sOAjD7uaH1cAgAcVYq3hsjvYVsjNzzOSFYTE6UfAdt2KP4bUyG onu7Hw3T9lqMp1eoytj0k5jA8C79tj3AlS2nXtKujubsGL22Fp6sCOHWKFLaNo6ktHJ+ XWHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=jX2mVvFS; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bi8-20020a170902bf0800b00153b2d16475si4936330plb.125.2022.04.28.14.48.17; Thu, 28 Apr 2022 14:48:37 -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=@samsung.com header.s=mail20170921 header.b=jX2mVvFS; 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=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245430AbiD1P5v (ORCPT + 99 others); Thu, 28 Apr 2022 11:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348580AbiD1P5t (ORCPT ); Thu, 28 Apr 2022 11:57:49 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27F5DB8986 for ; Thu, 28 Apr 2022 08:54:34 -0700 (PDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20220428155431euoutp017f6180f9c056ecc62e26d71f6e7c05c2~qGm2Y3vMi1958719587euoutp01G for ; Thu, 28 Apr 2022 15:54:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20220428155431euoutp017f6180f9c056ecc62e26d71f6e7c05c2~qGm2Y3vMi1958719587euoutp01G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1651161271; bh=mSww8MNcP9LQau6omtTYAJnuYJvatHm4P/3v9FrFuEQ=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=jX2mVvFSVhV+1u6Dfhpw1ePk0ekW0o6bIDhBkl0cs93PHfA0RNjCvczdJESBLMvmZ 3QrHyJ6AMVWa9T7Ttoa+2sV0+6JEeCBq7qsfkmz/JuBmT9X5m/AQu4Ozkxz4lzmxsS uLrXbc6Oj+Gj296oBFsAmHn1yU8xlXftBVxJTOzo= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20220428155430eucas1p264e9d46e67a3b87a5f04612884dcf590~qGm195CMC1962619626eucas1p2j; Thu, 28 Apr 2022 15:54:30 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 8E.9C.09887.6B8BA626; Thu, 28 Apr 2022 16:54:30 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20220428155430eucas1p19843a8820764ea2bff4c8e828ab4c77d~qGm1ejomq0861808618eucas1p1v; Thu, 28 Apr 2022 15:54:30 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220428155430eusmtrp1084ab273f286eb108908e2488bc3d4b6~qGm1dczfx2007420074eusmtrp18; Thu, 28 Apr 2022 15:54:30 +0000 (GMT) X-AuditID: cbfec7f4-471ff7000000269f-d8-626ab8b6a3f7 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id C5.E6.09404.6B8BA626; Thu, 28 Apr 2022 16:54:30 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220428155430eusmtip2101d0f2ab9ec7ad016c58052efc89d15~qGm1ROzsV0803308033eusmtip2k; Thu, 28 Apr 2022 15:54:30 +0000 (GMT) Received: from [192.168.8.130] (106.210.248.162) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 28 Apr 2022 16:54:27 +0100 Message-ID: Date: Thu, 28 Apr 2022 17:54:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 12/16] zonefs: allow non power of 2 zoned devices Content-Language: en-US To: Damien Le Moal , , , , , , , , , CC: , , , , , , , , , , , , , , From: Pankaj Raghav In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [106.210.248.162] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA01SfUxTVxzd7Xt977Wj5IE1XHFhC34kgwz8Ct4wwuY25GW6SefC5v5Qi7xR GCBrxW2KrkodUtxaC6I2RGSiTBQZpcNKrWM1FKEtIF2XDgMOA6JMvgKbZUW3ltcl/HfO+Z3z u/fcXAoLv0hEUtn5+1h5vjQ3mhDiLba5ntdaTDkZa7p716DGLhuGrgxoCFQ5NYch+yknD+k0 Z0jkc/ZgqNd7hIcuX2nnoeFGPYZOtE3h6Jl60K+phjA0P7QW6ay/ATTi1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2Yzj4fdVrpbp e//rpbGZlllIbprv9exjX3mK2Przq/iesizNiIgyZhHfuU9HzjZMsnehh5N6j+Ln1yzxU8+p n9Z682zPkhBXi5LrSgvai7bddLq6XaWv56nd1MmpH278PRP791bV8Z28Gv9Ltj8//enfe/0D wXOvlDfPlqtZ8qtD2OGTmT1DrhJLcUaioRZzUXEiAIHUKb3vAwAA X-CMS-MailID: 20220428155430eucas1p19843a8820764ea2bff4c8e828ab4c77d X-Msg-Generator: CA X-RootMTR: 20220427160309eucas1p2f677c8db581616f994473f17c4a5bd44 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220427160309eucas1p2f677c8db581616f994473f17c4a5bd44 References: <20220427160255.300418-1-p.raghav@samsung.com> <20220427160255.300418-13-p.raghav@samsung.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS 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-04-28 01:39, Damien Le Moal wrote: > On 4/28/22 01:02, Pankaj Raghav wrote: >> The zone size shift variable is useful only if the zone sizes are known >> to be power of 2. Remove that variable and use generic helpers from >> block layer to calculate zone index in zonefs > > Period missing at the end of the sentence. > Ack > What about zonefs-tools and its test suite ? Is everything still OK on > that front ? I suspect not... > I don't know why you assume that :). Zonefs had only one place that had the assumption of po2 zsze sectors: if (nr_zones < dev.nr_zones) { size_t runt_sectors = dev.capacity & (dev.zone_nr_sectors - 1); In my local tree I changed it and I was able to run zonefs tests for non po2 zone device. I have also mentioned it in my cover letter: ``` ZoneFS: zonefs-tests.sh from zonefs-tools were run with no failures. ``` I will make sure to add my private tree for zonefs in my cover letter in the next rev. But even without that change, a typical emulated npo2 device should work fine because the changes are applicable only for "runt" zones.