Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2075533rwb; Sun, 14 Aug 2022 20:46:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR7mk8kDgQRdbhYnccVpvPlMggdWI9hB9h15efjiyq2FTLq/xz+Xry+0SMatyfCO5Hapo4wC X-Received: by 2002:a17:906:84f0:b0:731:8572:80ab with SMTP id zp16-20020a17090684f000b00731857280abmr9128768ejb.254.1660535173739; Sun, 14 Aug 2022 20:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660535173; cv=none; d=google.com; s=arc-20160816; b=Iv6A45KEZrKVIqyN0K9pwkSthxlzepJtR5f+etzlC0cbanetxuL/r3XnHt1EZ55r7o 9Z/AuhP6miHMIuWLIkGcqn6dFtnPTDQzh8XEnyhhRkWuGYpMjpor2iLzDmGnjsPexe8Z kntE2JyiANDBOCq6yIKL9+waB8NYeZfKnpT6HkSw5Z2++8ydtxig5EyFI9BffMO1IcCI GoCEEu+wQMjO+xmImeGQFtzfY/MML3qGUUcFi1PUWZKtSWiNsD1PSzX7Y3MYX0Qak+VQ vHjIhClnNE0w2ymgeLTWX/Zusn6BExJMUgPq/XIXS3slNdgC3mLlBqIOHKQ7maYnFgm2 qTkQ== 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:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=K+QLyk9N70sH4rJMC4E+opGwDlZoWX1Nq02YBG+pMIk=; b=BKLC7heUpZkzNx+wHOr9VegXZv3hwvktdn01ycVl76f65Bv61KlCSUrSU0H9GqDlcx bnEhriiX6cVsgU2vgKWloxEVxNrEPr7g7sg/9WLthXaYoYI1ugQ0skTlMNXaMgNCmj4Y urfmwwlyvy8YeI4pVi2gJznYk1+7liaheqmKLKNmom9388BYdN4OhBBOXFOiKx7mhxWP p+LWCBOdqbZjUmMRiso9f2k1E7KxbRTHr8J8jzNXqjeeQG6+Uc+sUBxlqoHBGn7jjrt4 fD+L1rDDPLnVNEK+CdZ+EwiuITF/7Zi66VMGSUC1HuZAVHkukM2m8CBecP5loeY95RHR cwcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="EvOM/yGo"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a056402060700b0043e1d52fd9fsi6551978edv.594.2022.08.14.20.45.49; Sun, 14 Aug 2022 20:46:13 -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=@kernel.org header.s=k20201202 header.b="EvOM/yGo"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232772AbiHODiN (ORCPT + 99 others); Sun, 14 Aug 2022 23:38:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232766AbiHODiJ (ORCPT ); Sun, 14 Aug 2022 23:38:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FC7913EB4 for ; Sun, 14 Aug 2022 20:38:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 19812B80CF2 for ; Mon, 15 Aug 2022 03:38:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EEB18C433D6; Mon, 15 Aug 2022 03:38:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660534683; bh=VsYtEaLrultUzMYq2W9FqRUKe3E7Yctk9vn8SCRVUCs=; h=Date:Subject:To:References:From:In-Reply-To:From; b=EvOM/yGowHJ9MBWHDjna0JIomwNTVgijPeGdq6G3VY8JUttonvroTfsUwAvjQvCrw Fqb2/qo2zTVQ8zbM+J6iY2T2cqj2svwY62g0ZZp4yRHDjmgvjitEbd8nX7hmpTifOV DAUPbKubdiEl81nimPayRZ2jxXl0XCHpNEyK+7SasLXgZdTBPkrw0BNmIdNLnfG8JD qmdkI6y1/s0wnfvCGBMzfVxMMLbPXst5buOxtVy7knkYE/I8LAU4Z+a298DvTmir/n kakBEk/4l2qb4AFMFO3vo3GWk7NmLh2J50hDwgl2hhxONvlddVnj6DLFSpMN+HxgPp OLhGcU2nwM7Fw== Message-ID: Date: Mon, 15 Aug 2022 11:38:00 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [f2fs-dev] [PATCH] f2fs: zoned device does not support ATGC Content-Language: en-US To: Jaegeuk Kim , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <20220811225454.2125297-1-jaegeuk@kernel.org> From: Chao Yu In-Reply-To: <20220811225454.2125297-1-jaegeuk@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.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,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 2022/8/12 6:54, Jaegeuk Kim wrote: > ATGC is using SSR which violates zoned device. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/super.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c > index 2451623c05a7..212ec2b4926b 100644 > --- a/fs/f2fs/super.c > +++ b/fs/f2fs/super.c > @@ -1298,6 +1298,10 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount) > F2FS_OPTION(sbi).discard_unit = > DISCARD_UNIT_SECTION; > } > + if (test_opt(sbi, ATGC)) { > + f2fs_err(sbi, "Zoned block device doesn't support ATGC."); > + return -EINVAL; > + } ATGC is incompatible with LFS mode, we can check f2fs_lfs_mode() and ATGC mountoption instead, as zoned device depends on LFS mode. Thanks, > } > > #ifdef CONFIG_F2FS_FS_COMPRESSION