Message ID | 20200911123259.3782926-9-naohiro.aota@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=ZNpj=CU=vger.kernel.org=linux-btrfs-owner@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1E4C192C for <patchwork-linux-btrfs@patchwork.kernel.org>; Fri, 11 Sep 2020 12:37:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EDFA422204 for <patchwork-linux-btrfs@patchwork.kernel.org>; Fri, 11 Sep 2020 12:37:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=wdc.com header.i=@wdc.com header.b="ByAxPnPe" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725887AbgIKMhX (ORCPT <rfc822;patchwork-linux-btrfs@patchwork.kernel.org>); Fri, 11 Sep 2020 08:37:23 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:38428 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbgIKMfY (ORCPT <rfc822;linux-btrfs@vger.kernel.org>); Fri, 11 Sep 2020 08:35:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1599827725; x=1631363725; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=i44UAAWCU3pEu/WrC87PmjeM9oN6Y5QwdfGRxQZHtDI=; b=ByAxPnPecbmuR6jSqXUFzvE8w/GTYZ2R895RNE4plBQatjGGcZQgXuCF sGHcU1qdh7Co4l7s7AiEALbwvch47izazicHjlI3ylTA9+ipy6ZrRMfCR d0WK0H30BSmpMlAtmoDgOr/cO2cMb8lpOOMj9ztn2/HHjByhwpTZu+jIP j7VzVkZuyaBOXPirpm24MHswcf/TQUCBeJhYu7fEC69OUz/QOqpGj2COP JRZyRQfCNTppNKhUkISuhwjTePLtqwUJFZl/yaJZpUAjo/13iCiWkqOMc evOWcgl4jirx/TcXlsiMpESXpOo+ybgRJerSnJ0rLEIks9zIAlUlPcQYp Q==; IronPort-SDR: dScrbB4mMpkhdLpCQ/OUgoaNixF140VYd7NMdrNsB8zacP8IBVgRrF+cZagJ33jmfsxFjlkqy7 3qib0fETEGIp7sExwpeIwB96Bui8iAaTzd/zR+dBqpqJGh1Chuhavc5guySo4QXYpNuZjwKVKs NkBGI++tCe3AX6Pn8FsThvh7zI3y4kIFVZ7L64y0ww9qyCfhgGykxF4hNKUR516ltrkTCrYugm jkFnZcRDyIgBwlg4m/ZfZRxkajR8k7MCq5Ry/kO63VGpXuEEyv1MqmPL/UfvPnqTUTOa3aQQoQ CX4= X-IronPort-AV: E=Sophos;i="5.76,415,1592841600"; d="scan'208";a="147125968" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 11 Sep 2020 20:33:20 +0800 IronPort-SDR: PKWaGU3+easiWOuLFF7PWjyEWTPsi/K7U3rZAverMgl20istRpkLoC05MsE+xkXYrSdxpENI3U aYN4bBg0yfqQ== Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2020 05:19:40 -0700 IronPort-SDR: 8IvoI5d2CsSf1iTG+gGPSTPaR7hlMYGNCssn/rMhavF+c5VELpq1CPus6AQLG2bm5f99dxMqLX aBXiQLalsJsQ== WDCIronportException: Internal Received: from naota.dhcp.fujisawa.hgst.com ([10.149.52.155]) by uls-op-cesaip02.wdc.com with ESMTP; 11 Sep 2020 05:33:17 -0700 From: Naohiro Aota <naohiro.aota@wdc.com> To: linux-btrfs@vger.kernel.org, David Sterba <dsterba@suse.com> Cc: Chris Mason <clm@fb.com>, Josef Bacik <josef@toxicpanda.com>, Hannes Reinecke <hare@suse.com>, linux-fsdevel@vger.kernel.org, Naohiro Aota <naohiro.aota@wdc.com> Subject: [PATCH v7 08/39] btrfs: disallow mixed-bg in ZONED mode Date: Fri, 11 Sep 2020 21:32:28 +0900 Message-Id: <20200911123259.3782926-9-naohiro.aota@wdc.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200911123259.3782926-1-naohiro.aota@wdc.com> References: <20200911123259.3782926-1-naohiro.aota@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-btrfs.vger.kernel.org> X-Mailing-List: linux-btrfs@vger.kernel.org |
Series |
btrfs: zoned block device support
|
expand
|
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c index 6bce654bb0e8..8cd43d2d5611 100644 --- a/fs/btrfs/zoned.c +++ b/fs/btrfs/zoned.c @@ -260,6 +260,13 @@ int btrfs_check_zoned_mode(struct btrfs_fs_info *fs_info) goto out; } + if (btrfs_fs_incompat(fs_info, MIXED_GROUPS)) { + btrfs_err(fs_info, + "ZONED mode is not allowed for mixed block groups"); + ret = -EINVAL; + goto out; + } + fs_info->zone_size = zone_size; fs_info->max_zone_append_size = max_zone_append_size;