Message ID | 1477644307-30115-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 AA8C460588 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 08:46:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1EA32A66F for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 08:46:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96B722A671; Fri, 28 Oct 2016 08:46:53 +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 2070C2A66F for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 08:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758296AbcJ1Iqt (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Fri, 28 Oct 2016 04:46:49 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:55263 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756338AbcJ1Iqi (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Fri, 28 Oct 2016 04:46:38 -0400 X-IronPort-AV: E=Sophos;i="5.31,557,1473091200"; d="scan'";a="25250703" Received: from mail-bl2nam02lp0079.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.79]) by ob1.hgst.iphmx.com with ESMTP; 28 Oct 2016 16:46:36 +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=lOZCvQGT2ChBDZPGsKOWtCsPawzG/kOYbj6tQS7NfDOcQKI6z4ZzGqdXKAvpUOlcyL4hBKdSZ+G66RPPcnBOkjmqtifTO81/j1oywmI7m2gplD6pHulw2MaKTpQ8w87Tu5uvL+i12MLEJ1aQv8jxzI7XvdAEMqUMaio27Pg2RcE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Damien.LeMoal@wdc.com; Received: from washi.fujisawa.hgst.com (199.255.47.8) by BY2PR04MB1974.namprd04.prod.outlook.com (10.166.111.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.12; Fri, 28 Oct 2016 08:46:33 +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 v2 6/9] f2fs: Do not allow adaptive mode for host-managed zoned block devices Date: Fri, 28 Oct 2016 17:45:04 +0900 Message-ID: <1477644307-30115-7-git-send-email-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477644307-30115-1-git-send-email-damien.lemoal@wdc.com> References: <1477644307-30115-1-git-send-email-damien.lemoal@wdc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [199.255.47.8] X-ClientProxiedBy: CY1PR19CA0030.namprd19.prod.outlook.com (10.162.38.168) To BY2PR04MB1974.namprd04.prod.outlook.com (10.166.111.14) X-MS-Office365-Filtering-Correlation-Id: 456599de-cd87-4eac-aec7-08d3ff0eec2e X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB1974; 2:TISt7RNuk5R5gpO2eCa5/lLVwxX/fdsgo+v/+oihdZhWUwaSGRCPCvPnVjYSECxDQiBzxHeryEgAu5TXTHbc2q5jmruUmppJ+WEQ/xtWq2QtvNQbxLIBVm8Rg9HNieR7fKDHrNwfx6iKU9pGcXtZbM4uM42T7rKR/F4bQN/8uBoRXU1JKfdroz9I6yVfUDW2JhBtM/6/b7SISUXy+6QQiQ==; 3:/t8yopVsSHbF5A+7uu+rvlQXVq9IQDhDXE6MoBr90z217UZPD3h0gZbNmIvfpNBu2qmb20glCMuRDSZSEen63xW2JjDusDMdd3U3AZjdIPdORTnkfxJCDF0RxaQOc4Tu+W0v2OdTn+w+rloakrAvZw==; 25:A09Ld146ADjfk8P11J1uSbcpfPZUiMiqUwIPA3m+Z5gl94EZPrSM08F2odtHeFU2VP39QUwOxHXHnJ3bnQflTw2IfwnfIyABkyzbir1cGsp+964sTHJBBKzF9RgtAP5enYxle9yDa2IPAaOpzlwIABSO0P88OX2DHJAvTj0I7Zu37yYtA1HaIEIv8eZszBitrEq3mhB4S79i0Tov4Uh8znHl1hjso3l8i1IRZm6DQerJFptv6RDcSF3SCQkivTEzu5X1ak4DzWImD2lRRd0GsItLyuS1ikHeOpIGMhLrCdg6nn3jdaVotHWwPqhq0knLaTd32QU4qAdrPrT4Us4PaRpvljGz07e0EiAdam3SxxQ1eQf6TGKL8Ztct0EnF4JQvVUkfzVfZh7pWWo/2P14IxcgaDOHHa21/2emiYVnhZqF39/LPuQ5KxTMXnZfUNNV X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR04MB1974; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB1974; 31:2sEte3tLQOeuU1psPGRduQYdJCozTVPWP2io1mUlvAH5HmMoMmQFpDmifqsMAM+ws8FfkLfOYfQvKJE0noeoKIkSLqPqdRK7djMx2zWZRlHyL+aHss4JQrJx0HwTCIrWxmWUC17srDaer14FttQmJ7Gm7OoycKMSHMtcWxvT8E//iYgoYGHLPnB/3+1Eun1OpawWKOeTjs75EBK+VhKl+6GYA2JpjCQ5wfwjVQRBlnJQr9sbCSldDgCOXW/mNJUyNMxfpgITKCsXwO8QVFNo0A==; 20:kWE6qVyiRZKv2InnSPa+8HQE85c734PGV7u1WqpzghzVauvGiO97TGJUSSHzPvg1XpNNc8ziFCwLIPNBGbKMwU04fMPvIaItRcBy/Mx8EMagzU8/hTtDfkjEE1sohkMlJv+oY6InzReHl+eZdYk4z7FWExwaYaQUP5dkVvclyRhxpH3dM5k8naeXA3HhoqunHo1EnNOsohjb1x3q4CrbdFKNUwyg2FwzUX8s32tScVUl3VWpEucKglTbFXuN5LRze75h6zwxePcBFMCBo59jb0TAvSOTBfcyeR28d0gj7cGrZmNww8P9CNTeRHOIHpecfQtowuNpqvdnsUvur5zJRGJ7UVn3dc0ep91LrvgiPr+Eq7+hQK92Thfniv8kTi772XhXRYkHt7v1rojWjEO46K7wxPbDFs1m9W8HA0J0xdOZJASevndXyKHEVhpm1ZywZvHEqMIf/IPrgH9RKafEybpvPAo4Cc1JdGWJ4/A4XcTjCYuLur+oZn2qfftiIi6n X-Microsoft-Antispam-PRVS: <BY2PR04MB1974D10EDA04067EDF55D87DE7AD0@BY2PR04MB1974.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)(3002001)(10201501046)(6055026); SRVR:BY2PR04MB1974; BCL:0; PCL:0; RULEID:; SRVR:BY2PR04MB1974; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB1974; 4:ekUPFvRkvs9sQhwTO93H45yvdDpbzbuM7TNqxaPjrZnPfjF2m6uGL1UagLiw2A1lXYwKZGTclfeAb46CTTYzsxUG0oiP5qleIAfH103aTBOciVV6xAcfjPm4X1jTYFiWupySd55KtKGoJivHkF5WB1Pn5Ygc61OiQf+G0Mc8Kq/o6Jev+NkqFQmE5QMbVhJQKBgmuW9zZz5ADIo6IQ9rNM4XGMiQetiUjHM53CUL0wPEsqmaxGnf4V+RE/bbSadH7qWYKuMOgvb211WwDs4sn3LCHLJwnExHEL1mkkVfsXCSdx/dhAFvYaVCfbgwKeh2QXSLP/80LYXUq339BFU0Ta2Ni04tZQHAr5XQegZuHDUQz7Gf89b8BAg5tOdXg60GRiuBCBoKWZqODzb19EGIPAbkEN5iz4UDVvAI98Gevp8= X-Forefront-PRVS: 0109D382B0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(76176999)(2950100002)(50986999)(305945005)(42186005)(7846002)(6666003)(4326007)(86362001)(7736002)(5660300001)(106356001)(81166006)(81156014)(66066001)(47776003)(68736007)(48376002)(105586002)(8676002)(50466002)(5003940100001)(229853001)(92566002)(50226002)(101416001)(33646002)(19580405001)(586003)(6116002)(19580395003)(3846002)(36756003)(77096005)(189998001)(5001770100001)(2906002)(97736004)(7099028); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR04MB1974; 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; BY2PR04MB1974; 23:Hwc7FY10pyg9/Rp/zGAk1GGyRIxEA8dnZ0xPjnLV8?= =?us-ascii?Q?V2qCqy1Ewn1h93NBNWrjc/T8VWk883n8A8og5R1lHV53k5PiYFLQQ5xBmv7A?= =?us-ascii?Q?CGTN83suc2uvohfHIbhSBB7DxpbYokQXerdVzBdvTc0nFm5I+7tyroivWMoc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nCbRJxdhGQKItse+ud+sykPwvAtRQKiH3hGssMTgwiyydsC8IaxG1sqC2Yq4RqsUeG7DCpXGxYjbixFITuY+ARZCcxCL272ERP3ddjjO0Fz8=; 20:h5oMcFaOYRrYYga9ZjS4Ace4cxpEPEgC11tPIhDtBrYRRoUllVdDlTpFaa+q+lSPXZZe7IZ2CPo02kYrkMBTy3pnK/C3VCjslLSlHhUrvrbWQJY9EYKdmuhFpWgWkDkRdacrJuMSI1bUC3xFlq9wIu5a6Urfq8ieQBCH7d0fk0rak93/gK0EsaLsOEwgJaLkEZcu8P4TmtICB5ChCmU9pNG9hEXYejsfdUwoM/lG6sljtrBRa0QQmRJtlyrKFnVK X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 08:46:33.1767 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR04MB1974 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(+)