Message ID | 1477641337-12321-7-git-send-email-damien.lemoal@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A335260588 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 07:56:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91CAE2A5EF for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 07:56:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 869F32A5F3; Fri, 28 Oct 2016 07:56:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDD652A5EF for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 07:56:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941546AbcJ1H4S (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Fri, 28 Oct 2016 03:56:18 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:55766 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S942251AbcJ1H4O (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Fri, 28 Oct 2016 03:56:14 -0400 X-IronPort-AV: E=Sophos;i="5.31,556,1473091200"; d="scan'208";a="25239567" Received: from mail-by2nam03lp0048.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.48]) by ob1.hgst.iphmx.com with ESMTP; 28 Oct 2016 15:56:13 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3ltRg9Vbt9FNXNGgR3Gi/WEmp+EbWvSUJHKfMInd5wA=; b=CrUaHx5/lCXS5OmXjyvj/ejrb+M+KK+FWnuE3NEAtQdUioYESM2ipG5J0FJubobmomhUsAhDG5uAjBwXxU/THpXkgvuCKIy3V6kuzPEZu6yFKYoTy0Xr3EmlkOD82wzziHeyh85Yp9QRcVDLHd52TWOS+/N7M3JorLufXJcOpj4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Damien.LeMoal@wdc.com; Received: from washi.fujisawa.hgst.com (199.255.44.5) by BL2PR04MB1972.namprd04.prod.outlook.com (10.167.97.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Fri, 28 Oct 2016 07:56:10 +0000 From: Damien Le Moal <damien.lemoal@wdc.com> To: <jaegeuk@kernel.org>, <yuchao0@huawei.com> CC: <linux-fsdevel@vger.kernel.org>, <linux-f2fs-devel@lists.sourceforge.net>, Hannes Reinecke <hare@suse.de>, Shaun Tancheff <shaun@tancheff.com>, Damien Le Moal <damien.lemoal@wdc.com> Subject: [PATCH 6/9] f2fs: Do not allow adaptive mode for host-managed zoned block devices Date: Fri, 28 Oct 2016 16:55:34 +0900 Message-ID: <1477641337-12321-7-git-send-email-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477641337-12321-1-git-send-email-damien.lemoal@wdc.com> References: <1477641337-12321-1-git-send-email-damien.lemoal@wdc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [199.255.44.5] X-ClientProxiedBy: CY4PR02CA0042.namprd02.prod.outlook.com (10.175.57.156) To BL2PR04MB1972.namprd04.prod.outlook.com (10.167.97.144) X-MS-Office365-Filtering-Correlation-Id: 2e95d497-0ffd-4f84-08ff-08d3ff07e27b X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB1972; 2:jz6s2TOOBrOj5idMAqpxBkiDu2xkjGRpjwznLdpiUgrrHnU+K9p/kW98USzDvTFYrnGmHnSrFwA621/xjtrsGVnxCqnV4mnGTc7zDKsgDX2d9Tf+fAZ9QVHAPpmUaulqmfhwHWNzdMlJl83gZuOaOBoCzQA8/TtAVwmfNRBpmEjOqghUtLQjdaIbAgn0cNwObN5ZPG/q5oWCTnrftFUieA==; 3:5EdRJdS6kiuEGy6VnOmfNQpF8tPox0+MnhZdAWFZ3nupc0bxJBYm5vDVvdOpyo9Rt9qWgM/M5OQsMw66EvjNqXU2TQnbY75IA00RJOwrBpTY/3JGq+C6MQgf003roeZYwAKnkG3IjzS6Cc3B91C85w== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR04MB1972; X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB1972; 25:QvlWagqMCmhqU2UeGZfY+PLlsNmKlhyhCyDmrbtggnudW6+qM2YxRn0k+dbtWX3t869qavkaKLiriyJZrdVnUA9UGEzO86g0D5iN2M8WwUmsWKuThjV2pTuluh11ZHQeqdK2qD8E8d4W15l/0AFL7mujbm3aJAIAYS8RuQdghpQvaPSQEpJ5sLKfl5usKoHbSr7xgzwWkYdhrSFxBJeDVbr77IS7cihk3PRfrQs95J40wo4leZgkSqF10gkvy0nMs49WhCRKC7H1fpF8/I5g1jrhdKb/LZ+GVz182DKviVVDaCinqrYJvSFSMw0Wo+6QM5XT5ZYuKmMOASOX5WLYs3rcM3Are3AOgwYBfZRO7GFAZTCnHJp93pb+5SuS+9BpxQvwdYJK3nLElCtakwlP9XZWU7q3EWytX5Es4NXJ8RVtQy2gNy4nj8r599VirelrLL1l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C8UBMPianaEZwycwStILRGe5Is/l5ySexAX3pYBMTQDp9Oq X-Microsoft-Antispam-PRVS: <BL2PR04MB19728124F62BFEBEF47A4EB2E7AD0@BL2PR04MB1972.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:BL2PR04MB1972; BCL:0; PCL:0; RULEID:; SRVR:BL2PR04MB1972; X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB1972; 4:Sr/VttTqpIRwfLSQjFZj51zsrkFt4AnqggwyDJGOUB1N4ivopPTS1+Vero4UBhdwTR+wGlNzuIkShv2zEOsqnSTvSRu+gm0jD79rIUOfKFQ8JmLKqyRBqOV4ziztdTfmDoJu4RQ1ruIJorS/1WrqTfhoInHJCNpOjnlgs8mLmJRHH1+qS1/6I6um10tmMWM+j9mVIHEPBCW60mg65aabubhaSOxizhXUvqHCJcGCGW3rWjxTDgejEqHeCZuhUgT3Fna3fnmDsSaBpQ1/UXRG5MMnJ5EBFOCLvLkZT4ekjhLG0u8f3oHMpwhmRNzPPeJcnqH3Tdp7nQ4IF8Uaq5ZMykELY+CAAIBV41T9Aj6YtIcceesISkdyTRrpvWKxFS9Nvau3DKT8beTddNzCtYFZigC7pqkpel+1hXjeMrXXm/s= X-Forefront-PRVS: 0109D382B0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(7736002)(305945005)(7846002)(81166006)(77096005)(92566002)(4326007)(5003940100001)(6666003)(2950100002)(3846002)(76176999)(50986999)(68736007)(2906002)(50226002)(81156014)(8676002)(6116002)(47776003)(586003)(66066001)(19580395003)(5001770100001)(19580405001)(33646002)(106356001)(105586002)(229853001)(101416001)(189998001)(97736004)(36756003)(50466002)(48376002)(42186005)(86362001)(5660300001)(7099028)(5005270100013); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR04MB1972; H:washi.fujisawa.hgst.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: wdc.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR04MB1972; 23:TwWfoidCoCSCVuzjLMOtdeMGoFxFqHbM7iAiEayyZ?= =?us-ascii?Q?uv3uz5nAKvjzbeSYTsDtvWyc/eMT4SuX/lYvhK+JlK9ezF52AqBzaoC/SmBX?= =?us-ascii?Q?9/qQer6qqp51EqvCrx/IIOHhDyYTrp77jAcZTc/45yII517JOY/hUQWZb4Uj?= =?us-ascii?Q?ymqSYMv8CsC4LXpzu7DxYslvvi9Llxa6L4OCHtn7i5chcFJz30IkFUb7xcdH?= =?us-ascii?Q?ZCCghnht+8r0ySjbsQN7K7Cvy/OxwNY7iIgKqY3w1ibcB9KooWZ900OqXR8t?= =?us-ascii?Q?VNOfMjmbFkCCRMiKv4OGSfnV3NaxmtL16eob61ry7ZgQ9O3rJulQ3aiNOaDn?= =?us-ascii?Q?XD9BE0q2WL8PQxErCW0w1HF9IPii88FFuaWwswFGUwRmzF5wTujfk3Mj2idz?= =?us-ascii?Q?eJthrk9SkZUbFAUQWpR3JjUch4jPgcrJBdNX0qdAyhsSutNNNt3mnUfDXx1R?= =?us-ascii?Q?9WqQmwefLvtLYai4rarAr67JSiVmOHQz4gs+v+xUnsGAtUZ0KRZd21/whQ+O?= =?us-ascii?Q?TtrTGuppA7oe+r2A0L0QqXzUCxRV5InXlFA9LkFezxfDEQYPysMj2urZ8fzn?= =?us-ascii?Q?RzKP2U6CjgwxCC9jQ7FWNsNxUlBl9h2Z8jGNll6bq/q0leNQteMZZAzzDKjp?= =?us-ascii?Q?HAAIac4XEg6qCfI8lwANDhHr0xsdFOM2ip3VbbPdiCIQUoH1KvSBvceAEmc9?= =?us-ascii?Q?8gAL+fTmWbJ8ipDVZ6qyD5ed3UnppnleulZrvJihNRuGEae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gO6A7wUDSYYnKeFw7ZnHqVLZKdPMtrSaTmGVVEC4zjF+Rb9RSzShb9BVIdISBRSFwjkhLAAXsWCsFbh61Vn5z3ddU1os= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB1972; 7:5DGdRFkDwgmTzdX4lx5Nexk3mGKGNAkjZEQXk87ttTOuQtTbh/PIL+P6iRnpsWkVkL0cLI8eh39aYj5s5frAqoGBFsPzvO8r6g1SOWtLDZcOYBlh3axd58iLLKenp8ObsK25yveOBI1XZ8SY3FTllHZXlwyuNhjUXuBR8qgwar7bxE2W6Fpp4uedyJPpY7gCx+SpuFyWLPmFH1PS19BEaikfWw9VCMlKAavrvUjZPwGb21odln0FDsmuLXHl8RF2HX7kCVs9jxqsUch8PGVjHlvFLu3FGtzrWSoSj8f5Mk5Ui0wE/zzvAZzc5R6NXFjChSTYWOzch5zyHp8z1IQnu5jD291Tzd0/CloQyvvlxh4=; 20:cXxwwt2kqteHOv0ke6J7xXs5aFiQJfGtlmkRa9X2Hvzv/shApiuPrGL9YylUdVWbRMRLG2GgVm/lVb3VzMu1XQn05u9iXoikwImuD77WQtH7KqrfAz8724dsh5FWi7s0CrddG8R4gx8pdAElZZZtKe/nSPOSJXGCsSUjJkxzRBliT+MNG1ylQss+Gl4aQ7M9WOjkZ0D2WGrxcYJlUulR2rfhKEHd4u015r8MFNRCahUV/Xw/i1iVbkaPXyviuEnw X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 07:56:10.1075 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR04MB1972 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 2c8a12e..58fd69d 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -518,6 +518,13 @@ static int parse_options(struct super_block *sb, char *options) return -ENOMEM; if (strlen(name) == 8 && !strncmp(name, "adaptive", 8)) { + if (f2fs_sb_mounted_blkzoned(sb)) { + f2fs_msg(sb, KERN_WARNING, + "adaptive mode is not allowed with " + "zoned block device feature"); + kfree(name); + return -EINVAL; + } set_opt_mode(sbi, F2FS_MOUNT_ADAPTIVE); } else if (strlen(name) == 3 && !strncmp(name, "lfs", 3)) {
The LFS mode is mandatory for host-managed zoned block devices as update in place optimizations are not possible for segments in sequential zones. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> --- fs/f2fs/super.c | 7 +++++++ 1 file changed, 7 insertions(+)