Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1106821rwb; Thu, 11 Aug 2022 16:16:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR4WJWqe42Fy7QAOvGVoScnGVXvuxy0Cavk+n2X7B4dRqtFleF/158xOAea7eUrC3kiFVEpL X-Received: by 2002:a17:90b:e12:b0:1f7:68e9:2da4 with SMTP id ge18-20020a17090b0e1200b001f768e92da4mr1198505pjb.245.1660259793300; Thu, 11 Aug 2022 16:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660259793; cv=none; d=google.com; s=arc-20160816; b=QtLAygI11/hWxxQGfKSKHt8C6/M7NU578tS0DEsPRx9aF82a3uLXn0Yn7wtFu6Kprg TBs8V/uE6HRMVITUZCzmWv3r7mpqAztqR5VFAaSAIr3iDYmDyFl0Pzfh3p0YTDG9A1TS xW5onWLc85OvAg3lqwO/px/P8B46VKVPBE1tvY1NW6AtIEqXNJt9IQETQrm4ZUw626yb TypoIpOHbYQPteGfKIfiS3c+8oouHmQxcjewxwTKVs1AELTcQExpTF/LHLPuZVLgDJiM eAwcI71/DU0m8aYzuJGCh24WmKs5S/Iq0wyCzWiNnmrU/ZIPii0KGc/51Sg2iXAoDSrP +0aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tEetL5bBXmULnpR4y7+evQFuTNvhmEP2hxKpkbBoWMs=; b=Xikdrboxmuz1S7jWIAZF3PPYVOD0elNMJJnjpjGm4z1SWv9Yg0jcEX4WAomy4MY7NQ IdT5OLmkl1RjxDpl5cCtMl7JllQybFkFS2ItSYJeDBqhXJWqMTvlLv71dQNr3Ptr2u6z Abwjm/txXNsnAW+mwX9OZ8Or96/yxDB2XG0AXUzKNfzS+HGzmFN9cChkVEFfub4A9MkN xC1G1+9qk3orLlXJ2dzFimu2BAKxRocIp8M8NcX1Ui0HqrDL8xyOpyIQgKoNR4ygrSuR Yp/AS23bktYgp+0d/9K0j4s/+pkXUk0Zn++HyPLiG87S+RCizr+cubFmuCFIRJY67Tl4 VPrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZfGRPM+5; 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 lp5-20020a17090b4a8500b001f29f693f90si6437886pjb.186.2022.08.11.16.16.18; Thu, 11 Aug 2022 16:16:33 -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=ZfGRPM+5; 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 S235875AbiHKWzD (ORCPT + 99 others); Thu, 11 Aug 2022 18:55:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbiHKWzC (ORCPT ); Thu, 11 Aug 2022 18:55:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C190A9E2E7 for ; Thu, 11 Aug 2022 15:55:01 -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 80228B822B6 for ; Thu, 11 Aug 2022 22:55:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA759C433D6; Thu, 11 Aug 2022 22:54:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660258499; bh=ycUQg3EfV3v4qlL6WPECdZb5Kbc9wh21Vkk4bXPCQE8=; h=From:To:Cc:Subject:Date:From; b=ZfGRPM+5Hbj+TjCjF2RdOsqXvKIrZw4ySN6OMBRbjqaC/OMnx2GDyjQVWH3rdAzZ6 e8YvFuhtNGzDU+X873B2+VZB4vHoQ5hPil55vppAunZ5XmLWuV6G5xYGSBAjS1u9n3 Wkb8vLKSRHuxHgrPHLTm+lzXx7J5bQdpOS3OO9LWkF5iOJB92nTu2yjas/9YhpCgWf 91r9kozclbD8+ApDDsoHBSr7oNBb24OhF1XfyH836cfjLWFFoRTMn7l/rL/KoEQJnU dBV/hov2FubePJx9E9MF9+kZapE8eKrROpfGIzqwt0o01MS46ggGChzeerwTSRq45c xZ6fTloK9PxFQ== From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Cc: Jaegeuk Kim Subject: [PATCH] f2fs: zoned device does not support ATGC Date: Thu, 11 Aug 2022 15:54:54 -0700 Message-Id: <20220811225454.2125297-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.37.1.559.g78731f0fdb-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,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 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; + } } #ifdef CONFIG_F2FS_FS_COMPRESSION -- 2.37.1.559.g78731f0fdb-goog