From patchwork Fri Oct 28 07:55:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 9401459 Return-Path: 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 EDE4A60588 for ; Fri, 28 Oct 2016 07:56:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBC762A5EF for ; Fri, 28 Oct 2016 07:56:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D07872A5F3; Fri, 28 Oct 2016 07:56:17 +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 682752A5EF for ; Fri, 28 Oct 2016 07:56:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942191AbcJ1H4O (ORCPT ); Fri, 28 Oct 2016 03:56:14 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:63346 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S942085AbcJ1H4J (ORCPT ); Fri, 28 Oct 2016 03:56:09 -0400 X-IronPort-AV: E=Sophos;i="5.31,556,1473091200"; d="scan'";a="25239547" Received: from mail-sn1nam02lp0019.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.19]) by ob1.hgst.iphmx.com with ESMTP; 28 Oct 2016 15:56:09 +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=DxEL/E+sYFEwVaDxwZbDobhoX9xM8jJ+qHyN080KlPH2+p9vMo1raWpU8mXFkSGppVEBEGN2ewqro5qJ/ht9rpOl+CKjMv3H7M4JoCzRQtiO1rcgVhyXX7eO4b4SMtG922nNhXXXevw9AATdHf5yt7Jh1tWtzRVMjC/Tt+ZAPhI= 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:05 +0000 From: Damien Le Moal To: , CC: , , Hannes Reinecke , Shaun Tancheff , Damien Le Moal Subject: [PATCH 4/9] f2fs: Suppress discard warning message for zoned block devices Date: Fri, 28 Oct 2016 16:55:32 +0900 Message-ID: <1477641337-12321-5-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 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: bfd0ac81-4e83-4be8-6819-08d3ff07dfd0 X-Microsoft-Exchange-Diagnostics: 1; BL2PR04MB1972; 2:f19AoYacy8if3ywwSerfEKQ+ZdSc2uu1IvQh9fJXZFzp/1ULN9rLLEG5Hc1dJU2FmH6SW9uqXdfb7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ruOpc7U42QaBrgRIkaVkV86D; 20:Uz2r9pzbuiDrlm8syC/FRFs13MJDXpWPwdRMKTZS2KuP2vjUgDNreHv8zszCU4E13OTS59rtHbAJgTL8gr1J7RJgGhKS+NlmRBavrhvRGuUmro77DEcMYV+DxV33ILLw1tlk7Zc7UFtFPTasn9RZNCoSJjhqR33DE8k/CeKjibmpEfQn2z8QNg6yfFs5Pqo9i4P2/v8YDI4RJCSC1TgbMzWpFNQtNDHwDZi/j35++RagsDp15SC19pgxPFur8d3MQ0C7klEBKAADN+31ANC3dc5YdGvbXI1D71HUsO/J0QDMzsQdIY9nNgWO67ItycjquKKmfmqHQOJDRKuI9WBbxBC54FHJxeKlXtiwkUdStLQJUSCiiOODg8gswH3fftSunFDrRpHjfTFupSkXjgmTbWI81G5aJ48B/ZLGriJ3fjV9yGNSDDJbjF9OzzNAbfxPxmOX9Tmu23L03tBZGS6stuhgvcLDswptYk0YnXdn7LkEyMgNrDljf7fwO19Qqwyu X-Microsoft-Antispam-PRVS: 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:lCehCseGc5Ux/VSOEqIedit/nmpqvmz3928J1vGNpcEOsL494dhxiCmMEuVfnI8zonSWQt3QCzIr8l4we/2oWMe6sI9Ckc2LQzeEZ4zHbLusDS8i+VmS5wEyJelrCqs9X7ym5n5GpxGzX+zmq4GxLqRRfW/F34N+wXC2ym+IiwhQDyvmRQzbAcP7fBFYkUfsy39U64cuND0ISUixctgXDK9qeA/Hj7TsJIqfnTjyN7cp9dMS/PLvBIIlgEow0N4vihORrulxji05XXSw7ZY0khpK3Zook/goAsmMxjhqWtbcrFbt9lucGUmqj+yawT5lclpM/3+d5pC/HeQ4NnXgkFTjCPIK6tzI0Mg3mYyQNFzkgEoxUJHGxXLLP5tbtgYtE57wNmHQPycBH/Q3258D3vEArS+FcrfNnHJ3rrv8hEQ= 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:127exXW4+OLLCono7WeKZaPNZOn74yzBW6iFvw4oS?= =?us-ascii?Q?FuWFwOZBWXhNYtbiJ4Z85Rv7Yln2iukhJxQxrBozXocudorI3bI05jMW55T2?= =?us-ascii?Q?IQrHcSC8o4l7VKBPMMmcl70S4tCld9F8bnhs43N7v8APHSRVzgARd7yHEIXw?= =?us-ascii?Q?QUbxd6nUX6Kr4uZwtH+UGZ+oABccUXIZDIhLm/qT2M1zzie8rQc6OPakTCuT?= =?us-ascii?Q?0ziEr1yd376kUnz39Y0Ql4OGQui+HqNEBIXSgFWVGJRfJrNdVqSjoKCFYNA0?= =?us-ascii?Q?mAbi46KbAGY8x+u1jxF/QVXNFYCkVET4i4PmvCIt/ii3YMPlarPaM0kaaJ2n?= =?us-ascii?Q?W8vB79A7n/AfRLlLT+BQBW05j0Vo+42QPO9mxV/iBzXmgcxcTco/7IBisitv?= =?us-ascii?Q?jdRofIv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GhgtsZIw26CayInM3B3XbJc7Fji0PDXVl3wuXdCTKXhqkU0XfLnR9+w0tQeLbY0WAY0OEQfBoOYaDHAuWGJYxf1F16xKGVqf3ycVTlRb8WgfeuGfyXpIURWGBCY5 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 07:56:05.6678 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR04MB1972 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");