Message ID | 1477644307-30115-5-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 6486060588 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 08:46:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 591E72A66D for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 08:46:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DF1C2A671; Fri, 28 Oct 2016 08:46:47 +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 DAE412A66D for <patchwork-linux-fsdevel@patchwork.kernel.org>; Fri, 28 Oct 2016 08:46:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757842AbcJ1Iqn (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Fri, 28 Oct 2016 04:46:43 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:7565 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756127AbcJ1Iqe (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Fri, 28 Oct 2016 04:46:34 -0400 X-IronPort-AV: E=Sophos;i="5.31,557,1473091200"; d="scan'";a="25250684" Received: from mail-bl2nam02lp0084.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.84]) by ob1.hgst.iphmx.com with ESMTP; 28 Oct 2016 16:46:32 +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=PB0nwGXtQK1yMdi4jd50zO0jrQ3DKOI4Pe6/p66CCBw=; b=gQiDX9CpyTXEywW0k8iVcmFxyuSi9ZinLS68+qch5lEqxe2Gnoy9yoQPzCZf8hkEWO93P+ySf6Efx4XtiqFC3qHIqsW+SWCFvBq9ThXSmI6VwF5wLizFHxRCHzEEm6fwIdwczyTm66sr1Vm3PdxwvsLt6fn951bMBGTD4P9v7JE= 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:29 +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 4/9] f2fs: Suppress discard warning message for zoned block devices Date: Fri, 28 Oct 2016 17:45:02 +0900 Message-ID: <1477644307-30115-5-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: 53a8e140-6b0e-4911-f53d-08d3ff0ee9da X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB1974; 2:S7GcPZbt9zu5TpBpgmSee5H7XMy/dawEFhVUCsxs+7hY5edcL6iz+EveZRfKMed7OO4XJZcVVjfgxRATOKX9YmNCsllwHjyjUkzXmmMbGRIuLHeoHLP6EqsCniixpi98A92G6Tx0j03YgLZ8UqNfo8bx2qF8wJYDSb2nJuRPFH2y01JCw4OrA4sPpPUBetL0MgGCgBDE3LXN507NGVpmug==; 3:JFocwnBETRp1oPjJDrOTNIrDR7WJXmB6FC/yIiog6Sim9mwiwgBrsBaCWpc7qVTWQzTn6hS0EttLddg5MZmpNTbJBvsasceK7yt/hFP+KCV+cPTYVSHoa4Bxi2/xh0jJkH4fR7r2j55IRiN338QPeQ==; 25:yhjWha1lUuRLmG1o8tkUMvTjwinz5CdwGY5fi91Ti3GzzMAv6XJuLgsF731akjcqUwOnm9vMeLZNVCLlxbCbimDLXqyrPbG0hkhQLfsWj8t/5ZwpHdD5XSc2rTxc9Kua1LuewMo6GYYG/B/lVCMYByP0fvlNOA/mqEEovG7QtyXTC2j2ihXsgEfKGqP/3zd+aTScD2wV+506xepvVFfDDWBFh05VEY5YzzdbgLVzY4ahSk898wiOZda/yIwnTUbv9IEYLoUANoxZJnYqk4riAkHyChiVkk2yvom5kjNEOUzwAqELWBzb/zV06SPhSKFocGY3d9Kx+TIiJCQYvRRsmPydJjg50W95QMVMM0zI6wsNShZWCxmdNhEWWSTDr6kSSdUpXuUmZcYzjNjUDoVPvSVbv19Yix1IM7yen8w0RJH064JRZhUK8pNv7r2LG7li X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR04MB1974; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB1974; 31:LoQTZ9m1RCxm1q4VcZ/2rCtmEKQ+2V12RFEG124G5u5tTrJOe6WOAk/4MvVitM+SC3b9eQoNf3KEcTeeuTc1uBoyL28os1bbSn6va/P4M+vCDFc4HkD5MddDF9jLoS4Z/Di7ex4o7W94IrN0u/1mqeHGb/6GGYmR/SLO73bSLoqT5/dsqt9ReGC5QdceqQJqaxQCEyS5jqEt5miP0lLZOEGH3i2btmbkNKeGDLikfVePj6ddqf88T5LzXPA1LHnx; 20:xyU8QttwsK6Qk8NjOzFrUrwD83YUUEQUywfNw0lj1w9bYq2omwzz9rGL6DVIuwuASPn8ebufqbbLpXlnhwQwP6j2lZY1wpSm4skOpIE0P42bFY5rhYxjpfy5Pn/43rjIRXp+aNFrs1VGF+5l0N8DXbvLDWH0gyC13LKl/5dxjbCiOAz7wHhAGIrIt5P1rtp+nIR9p4C6gJ3Vz8AnKOr6WoYSDkwkR335yzWaPLz3bM9V/45caLeJVWl0GGfoZ8kwfGoXBIFa4vVz6iIfEBwnTNL/AJEq4ZmF0VMeiBazzBzHc8hR8JvJIm7HOi17uiZ7E8nXfBSCP2aHbyBBwBHer6eJMLuhdrXbRyVDNPdmb93N780O+tgmWNmZeXNHgVZaFLJ1x4icBv/Rv/vbE3jQfixi5W5MJ+SEGFkuy5OeQOHsX93tT5VpgSMu0vsypkk7FfukCrgTqI7WzeIpMCYB8f+x7NQzbj8BGVoJ1n5d7DsSxohfZ/a3CMEvQVVtUqmo X-Microsoft-Antispam-PRVS: <BY2PR04MB1974E2A079AD47C22BC27684E7AD0@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:gh9spqoU1JVLqWpURwPs+x2lbKNFPiNDkVycE3TzXi5ETjimLTUNCr30Dg5STV8kQa40XoyxqebN2UgPGE52RrLghoTtooeIpTd5zhRZOqsGOfDU9oiLQ50TP0qeih2DyTh+i5JCnpg+kWbt86mAJpB7xS3JuLv6c9/4S1gkzwpxiJyGf/aCEatp9HMy5QrvsLBZHUwt3PdLGetloQMzBHmedn5t7+uIqIgv26RDaBxp40XTdslScAhm2QgJtVe+mitx0FoXbLJ6ixc+irGR8jOrMZNdPO9tH1ec9I2FEohsoQ/2pLD9pKfvvTffF3shvrTFuHIiKJhKrQ+h8pA+qW6oNJYl9Xd/bICvXr4uo3PFCvlwYqYk3JS6G2xtLZYhQr6xuZLov4zF/dzuWowqvKR90uBvLPbQ1qWdT2Xwue0= 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:I/AivxsG+7kORtdt7Al9qQcHPT5/7DEa4r2NfKkE5?= =?us-ascii?Q?Wt0HKvnnC7Z74zcfOv5bDrzCow1HQMQgmBMQWryBXmWv2L2y4ZxZRUiMnMpT?= =?us-ascii?Q?PyN9qMrB+gt2DU1rlJD3271zBrIIMwIbSBdU+RF6w4TT7l7nAzZjMlFP6O6Q?= =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eClQAWCBJnTIO+5r0skDx+l?= =?us-ascii?Q?q34WOT4keHGZk9eMOqxC5fPtK8i?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB1974; 6:AWQ5OIXLCufx5Sk7QrA9qOokGIlFAeCa2BNKrzQGlzsCpWLV15CLYejcY7zxExvf8/uRbqSNyboohnLiPfwvk4lhefKcem5L2kBc7iEIB8FONGQb74DKEGHXTvANKhRFV5vvbFJ6ekFJLE7Da3C8n/mx7EQWrj64CPK5Sjh7NmxyAjQBv/k5JC1IUwbeZCATQgmL861me+md9DIKImt+gzheUD4HOILvtwxHKrHdu5YnjCD7Sm4u1+lQ6+pXxyeoHTDUax3h4y/l/p9YHypa4OCPq/dtX4HVZ+C11O7A2HhI7PCVvPWlNVUSguDQ0ZPvpWnyoPLIefDEtvl7+pc8aCMMDeFMTuHjaZ1xYbYkVBc=; 5:2tog89B6R3vgo8k9Qwr1BEGKvXLFTPMLgNCDmZWwnYL5y4fSYy7SMSRifjNjNhQ3OVA+pNyVn9cIBTrqbrdvMAMJmF3fAk6TJh7Mat4+8LIx9DiVJyJVamafGpuGfMHT82zeNXslyz/DEQW6//a35A==; 24:3T8q2vmgSEup0uBtxSJqXT5pXog+8M5RTcbmyNvavsFSOCVZ6onsxdyC/PnjtaeUfWAUVjDfTSMISCfDta41zeJ1ETogGemHHjL9HbRQESk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB1974; 7:2E6gF8XBAjkYOXkknPYuX5ntD9bDQMQ7bSU6/cZGITzfBp4tVNDyDNH4bKdH9I+L6oH618b5sUQl9Lgl0JZS3He2mq5iGLpNECl/nSLkNMTmEewpWypfVzoTLgADxt5YgzHemoIzMpctXgl/VU7AG8lIufLDPjbrENXzFRKN1WnEYUO+NmG4E06XUh77WcDMmcl2PASz9WlFpbW+jbLoQEpl05EVWE6cLCqRAnKso+nV6TYWrKzjhMez+bH8hwQOk39s+G6eX2x+r0+rHM+NkZBfRW75yu0VqUfuldnqN+opL+jHIarXLvREVsYdSjg+ejy2wP2Cx29IxvGSKFL4K2/lMQyUmYsU7KqsfyWzloE=; 20:vbNmnFIXNjeBj6DhbN8FVlyUY9XyWnvnEysUjOqErKMQBSczbvSY/eZAYecolaeA6jPs9jiXk5NMj3BIs9siOP7d0pC0a5XP3fPZt7mgsfbTu0eQE83UeauSsbyXx4wmRAp2X429Fcy5epUj5I7VOmkNduJVjjxEinmvH6W1pIH/89w6KHpVaKkZOb4jKprnD883gXcZaet4woazzb+M5rvr+PLqRSHW5V6YJratPLrxXNAuZRiMo5Vb+8vc3tpB X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 08:46:29.2746 (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 c6e9b94..2313234 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -412,7 +412,7 @@ static int parse_options(struct super_block *sb, char *options) q = bdev_get_queue(sb->s_bdev); if (blk_queue_discard(q)) { set_opt(sbi, DISCARD); - } else { + } else if (!f2fs_sb_mounted_blkzoned(sb)) { f2fs_msg(sb, KERN_WARNING, "mounting with \"discard\" option, but " "the device does not support discard");
For zoned block devices, discard is replaced by zone reset. So do not warn if the device does not supports discard. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)