Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp892916iob; Wed, 4 May 2022 10:04:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGSywzsNEe0cQBYlZIcnsLv7BWudrwInNrdUFWYdsYwL3mImLzwoi1rF3A8B1yuq1iz2Oa X-Received: by 2002:a05:6638:2294:b0:32b:2ad1:90c7 with SMTP id y20-20020a056638229400b0032b2ad190c7mr8921167jas.38.1651683893835; Wed, 04 May 2022 10:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651683893; cv=none; d=google.com; s=arc-20160816; b=YqpOzoMNALGt6SEQBuv8mherI5C5UbsNIBn88fEgmVYiutnVGxKkJHReypLAccfF6a B2sCAH4kounXI9nim0W8Wg8qnEtoLNLAhAAXWnCYrOiKleq1apmMIgHxc6ejbx/iG0Kt mUJ8T4Myfb+X9L2EqoLMgdTpyI90GFLcx9akU0QMxvV2bM5ZjdQz6AHdZUMckgddtlOK fbpvVajF+LVHP9zZc7PNtYQtKeOO4Yjy9082rTK02p2lCXUCp86JE93yu5hdE3p2hzHk hdf38NkI6XyVA3GZ5cEgPKjBVh1DcF+gBp63PDKh+44vuQrjB2KPlHNkb7DXi+lcSvB6 C3Ew== 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=QkjMVZ7YuUw8jJhXQnJpcoFnlPYOWuxnkq5J+jf/yN8=; b=XIjndEonUEvxWUqs/aAGeS5OsTSvRLwZ+0PxDdrzjEyTUAbf2cSBAXOS+R1or8Z77J yGsQ3NCofO3kUR7f9dqYYUoZDka5cz5Vl9kFtlGUxzmIqvBp9iSl+M1IST3sXHgVtiun AghUkHHWZBiJVVlgTjpSUKnP9n76+75nr0z+WKOFVRXllYfNP5iiv0q4KZwc74C/TJBi 0ePP1FC2xk2ZZByaJYaGhdgOAAfgjmbCI7+Jy27tz/j2CLOm2fH6G7rBKQP3NBJ/huA4 SVgTP7+7hhKcw0CAKTa9PziIxr6Q5JHiJFq58tDJJIkjv/BRXalcA7gNtG/IkXu6FLqO etMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=SwX7PQom; 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 b1-20020a92c841000000b002cc403e8523si8627956ilq.166.2022.05.04.10.04.38; Wed, 04 May 2022 10:04:53 -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=SwX7PQom; 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 S1345017AbiEDJB2 (ORCPT + 99 others); Wed, 4 May 2022 05:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343577AbiEDJBT (ORCPT ); Wed, 4 May 2022 05:01:19 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 510322C100 for ; Wed, 4 May 2022 01:53:47 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20220504085333euoutp0232c0486b1f3146c8f168d9eddad719be~r2vBNSnda1838518385euoutp02R for ; Wed, 4 May 2022 08:53:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20220504085333euoutp0232c0486b1f3146c8f168d9eddad719be~r2vBNSnda1838518385euoutp02R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1651654414; bh=QkjMVZ7YuUw8jJhXQnJpcoFnlPYOWuxnkq5J+jf/yN8=; h=Date:Subject:To:CC:From:In-Reply-To:References:From; b=SwX7PQomwR9Jxg5kgaLJn1V3BbAIEDAGNBF9dw/LpWo72I+64v2TBGhhngZu8do4l YVQIHqyZIIB2PCc7quDNenoFeJLOuCIsas9mjT49mvOmnHHY80AWC78AA0DUtO97q+ nqUbUPqpfYurzajP+vWaOF9+YZ7NVzpTPZ4lFrno= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20220504085333eucas1p10e28ba95f5c2a26ea4db6270247ad64b~r2vAoyEmn0813908139eucas1p1Y; Wed, 4 May 2022 08:53:33 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 3F.B5.10260.D0F32726; Wed, 4 May 2022 09:53:33 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20220504085332eucas1p28b16e7db390eb2ffb2906ed2f2aa06b5~r2vAHVCh_1462414624eucas1p2y; Wed, 4 May 2022 08:53:32 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220504085332eusmtrp1117c59c1ab66ee22363450053dfd8684~r2vAF33E11107411074eusmtrp1T; Wed, 4 May 2022 08:53:32 +0000 (GMT) X-AuditID: cbfec7f5-bddff70000002814-a7-62723f0d3918 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 50.F7.09404.C0F32726; Wed, 4 May 2022 09:53:32 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220504085332eusmtip1ef554c6afdc7b3b69842971ebc6d663b~r2u-6o-s51569915699eusmtip1e; Wed, 4 May 2022 08:53:32 +0000 (GMT) Received: from [192.168.8.130] (106.210.248.170) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 4 May 2022 09:53:29 +0100 Message-ID: <850340eb-fc88-38a7-4c92-1c389e92b0ad@samsung.com> Date: Wed, 4 May 2022 10:53:28 +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 15/16] f2fs: ensure only power of 2 zone sizes are allowed Content-Language: en-US To: Jaegeuk Kim CC: , , , , , , , , , , , , , , , , , , , , , , , , , , From: Pankaj Raghav In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [106.210.248.170] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0xTZxjed249Lak7FJFPuulSnAlsoAx03zKkLszt6GZk/4y7FjlBslKh lW3qNksQkAZoAZFRQcSwjdvoaFG8UMKaAcpFFkux4IApoKaEiwFkHayOcjDj3/O+7/O87/N8 +Whc0kAF0omqY5xapVDKKBFxpd3dGyqWq+O2F2f6IVNnO45qh/QUOjfjxlFXUQ+GCvQ/CNBi Ty+OrFPnSfTH32kYqq5tw9CYyYijnNYZAv2rG17unb6Po6X74ajA1g/QuMO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ZKXpSer1Nfmqh7ln3ljtsv6i2gOeMBbuoMz9s3cyGka+v7/7YNEkg9mR537zuS3fdYxJfG6u 73SfI1wXVZJSihZZS+9Q0Ojuubj+jfOeGK1ekZkZnTOeiTEFHyzemdUntqZtnaKl5WPVtDMJ sXNTpn1OCf82a6250J27hhb/n0uH8ypfTPjhzJ0fGjlhmhJLcUaioRZzUXEiAIorxvr8AwAA X-CMS-MailID: 20220504085332eucas1p28b16e7db390eb2ffb2906ed2f2aa06b5 X-Msg-Generator: CA X-RootMTR: 20220427160312eucas1p279bcffd97ef83bd3617a38b80d979746 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220427160312eucas1p279bcffd97ef83bd3617a38b80d979746 References: <20220427160255.300418-1-p.raghav@samsung.com> <20220427160255.300418-16-p.raghav@samsung.com> X-Spam-Status: No, score=-10.2 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,T_SCC_BODY_TEXT_LINE 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-05-03 22:05, Jaegeuk Kim wrote: > Applied to f2fs tree. Thanks, > Thanks Jaegeuk. I will remove the f2fs patches from my next revision Regards, Pankaj > On 04/27, Pankaj Raghav wrote: >> From: Luis Chamberlain >> >> F2FS zoned support has power of 2 zone size assumption in many places >> such as in __f2fs_issue_discard_zone, init_blkz_info. As the power of 2 >> requirement has been removed from the block layer, explicitly add a >> condition in f2fs to allow only power of 2 zone size devices. >> >> This condition will be relaxed once those calculation based on power of >> 2 is made generic. >> >> Signed-off-by: Luis Chamberlain >> Signed-off-by: Pankaj Raghav >> --- >> fs/f2fs/super.c | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c >> index f64761a15df7..db79abf30002 100644 >> --- a/fs/f2fs/super.c >> +++ b/fs/f2fs/super.c >> @@ -3685,6 +3685,10 @@ static int init_blkz_info(struct f2fs_sb_info *sbi, int devi) >> return 0; >> >> zone_sectors = bdev_zone_sectors(bdev); >> + if (!is_power_of_2(zone_sectors)) { >> + f2fs_err(sbi, "F2FS does not support non power of 2 zone sizes\n"); >> + return -EINVAL; >> + } >> >> if (sbi->blocks_per_blkz && sbi->blocks_per_blkz != >> SECTOR_TO_BLOCK(zone_sectors)) >> -- >> 2.25.1