From patchwork Wed May 31 22:52:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9758479 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 EC29F60360 for ; Wed, 31 May 2017 22:53:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC3C62766D for ; Wed, 31 May 2017 22:53:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0EB6284D2; Wed, 31 May 2017 22:53:09 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI 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 2ACC12766D for ; Wed, 31 May 2017 22:53:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751108AbdEaWxI (ORCPT ); Wed, 31 May 2017 18:53:08 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:57823 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751088AbdEaWxE (ORCPT ); Wed, 31 May 2017 18:53:04 -0400 X-IronPort-AV: E=Sophos;i="5.39,276,1493654400"; d="scan'208";a="118884966" Received: from mail-sn1nam01lp0116.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.116]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 07:06:31 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=D39oKt+B1GwdjaJpeSNxrGGz2QqvK2yX5U9HwsFnOgE=; b=mQsjYwaINJerotyOdK9PgzzsMytMEjK1qQZ+arVYdQzBOej/rBEOc3t1Kl42evgnAseGGK9xeLypPMbgGFkTnbLEdC0j6hyb1mCFjFiv+NPVvlqulJYpgKLSmoWAVxNq6pzeVUVloPM6ZPSkANwYG6mn774GH3CCm1bBmCmgDX8= Received: from CO2PR04CA0079.namprd04.prod.outlook.com (10.166.88.47) by BLUPR0401MB1682.namprd04.prod.outlook.com (10.162.214.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Wed, 31 May 2017 22:52:54 +0000 Received: from CO1NAM04FT050.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::201) by CO2PR04CA0079.outlook.office365.com (2603:10b6:102:1::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Wed, 31 May 2017 22:52:54 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by CO1NAM04FT050.mail.protection.outlook.com (10.152.91.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Wed, 31 May 2017 22:52:53 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id CE.DC.38445.4494F295; Wed, 31 May 2017 15:52:52 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Wed, 31 May 2017 15:52:49 -0700 X-AuditID: 0ac94371-422569800000962d-2e-592f4944b101 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 0C.1F.18148.1494F295; Wed, 31 May 2017 15:52:49 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Hannes Reinecke , "Omar Sandoval" , Ming Lei Subject: [PATCH v2 01/12] block: Make request operation type argument declarations consistent Date: Wed, 31 May 2017 15:52:35 -0700 Message-ID: <20170531225246.26261-2-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170531225246.26261-1-bart.vanassche@sandisk.com> References: <20170531225246.26261-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFLMWRmVeSWpSXmKPExsXCddJ5ka6Lp36kwaEJ5har7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSvj2qOTLAWd2hXP3uxjb2CcqNLFyMkhIWAi8bX3IksXIxeHkMBSJon1 d15AOdsYJTb838gGUzX/+zo2iMRmRolFCyASbAJGEt/ez2QBsUUEFCR6fq8EK2IWuMIosfby d7AiYYFYiWszDzGD2CwCqhJzGx4wgti8AvYSz3+8gNogL3F2y06wGk4BB4nV20+wg9hCQDWb jjwGGyohsIhVYvP2kywQzYISJ2c+AbOZBSQkDr54wQzRoC5xcsl8pgmMQrOQlM1CUraAkWkV o1huZk5xbnpqgaGJXnFiXkpmcbZecn7uJkZIDBTuYHx92/sQowAHoxIPr8BFvUgh1sSy4src Q4wSHMxKIry+avqRQrwpiZVVqUX58UWlOanFhxilOViUxHmzZKdGCAmkJ5akZqemFqQWwWSZ ODilGhhLt56OnbHEWeDpo+CjZ49tvfnWYRoT40KJycI2fTMN9lll21SfjnL97JV3e+YPj6SK wy71WnVWOmWaUdqn2fck1B1Z4ZhzbNeKafWFjotWSs0I35v2fVPkZ/+grM2mm948n+Ou5DxD SPVXFcNdLpmHhzcdXD3/JMv7z/eDd1z+ezD209VcwZlqSizFGYmGWsxFxYkA5gHVk30CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJJMWRmVeSWpSXmKPExsXCtZEjRdfRUz/S4OgsPovVd/vZLA7+bGO0 WPBmL5vFytVHmSz23tK2ODS5mcni8L2rLA7sHhOb37F7XD5b6rH7ZgObx/t9V9k8pq05z+Sx fstVFo/Pm+QC2KO4bFJSczLLUov07RK4Mq49OslS0Kld8ezNPvYGxokqXYycHBICJhLzv69j 62Lk4hAS2MgoMenHQXaQBJuAkcS39zNZQGwRAQWJnt8rwYqYBW4wStyZMpUNJCEsECtxbeYh ZhCbRUBVYm7DA0YQm1fAXuLY1OVMEBvkJc5u2QlWwyngILF6+wmwBUJANZuOPGabwMi9gJFh FaNYbmZOcW56ZoGhkV5xYl5KZnG2XnJ+7iZGcOBwRu1gvD7R/BAjEwenVANjmt784zavfzq5 38uS3/CKzfrkg7db6vYbS+0Im57XWsP2OPSuqoGUgZTThCfch7zV9pjIe69ee0rzsXTJMsb3 G091WP8zLslcvViCrb5Ub+oEz2ciDfFJZsW3pghOM/myw8DQ2cTiaEJmrkLOslS9xDfnGBec nnZdU6/y9sxv/QG7lLy4ixiVWIozEg21mIuKEwHDDDMwzAEAAA== MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39840400002)(39450400003)(39860400002)(39850400002)(39410400002)(39400400002)(2980300002)(438002)(9170700003)(5660300001)(478600001)(50986999)(76176999)(6916009)(2950100002)(6666003)(72206003)(48376002)(81166006)(356003)(8676002)(50226002)(8936002)(50466002)(305945005)(1076002)(33646002)(106466001)(189998001)(53936002)(2906002)(77096006)(54906002)(86362001)(575784001)(47776003)(36756003)(4326008)(5003940100001)(38730400002)(110136004); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR0401MB1682; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT050; 1:1lrLSRKhN1UsTpjEnJXGb5s1rlyfveT9sQo0JC/RbOtrzCeb/0zCFq+rmfZgMHpkB/NKnnLz4pjXZI1edjEKjHvyBq89quc6q3apHH4F9Ch2rNRAsw1QJvgt6pPrcWtvtIqDIs07P6AtdKyrXUgupn2zK9JvTqneJQjCT8RfbS4HUvdgyk2Rlu+HwgO5/DSp2PxY5S//pnxau4KzobIYe59xaVVef4DS9Vcc1MjmlZyOPgynAIQWdP6HOdihU2xYe2y6Csp6xfT52SJ5YXE76IqBsEIFjLINMTTu9d8knDIjZXB1rp5QD8ra8bwGWeg8P77VDXUxMeSTjKJRDRgST+QCcKH9Y9Zd0qrLrUpwAosrnV++xYlpJrjyFoNsq5u4w+VqhUfcnAlENB3WmW3+qqrA2g5jT1jO3VzLVW8b6HS5rA0u2uGOF5ZnFxK8ND1s2nS8E57SKIxXVItecM2l7tBEAuHSEWLSRw4WbT+a7Nsbg8mAbKHD3yPgYNVheJNyokIstntpAU46XsV1c6yBgOGL0fR7ZI/FPicdyzwo/s0= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0401MB1682: X-MS-Office365-Filtering-Correlation-Id: 2fbb6f0c-df10-406f-60f0-08d4a877c5ef X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BLUPR0401MB1682; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1682; 3:ydGMpxfbL0Ai/pGWhtExT/BfzJV3Ck6thuIHWcL7ZMYfWwzxM/ahgpm8zJqGWRK7TP9HywVeJAXHjlRTSw16VNh85JM5cp9ZjKq/AW8DYh3Ro8JydG+LxPKmRJPI3/yD2WA+WAhbzfQpqdZt1+6ib3VM8z0E6Yv2rY0f0gyJHxOmWm/vYm3Z+CFp59tg0sGvTOEwN33hOrSTf1lugvVIzNgF+ME4fQfDmC8rOURy2yM7zO1LN5RugYiUDA2Qbur3bXB0YLgGESl8JJ2GjpLObPoDnTNenlfMKmi9MPx7/YVoIp/IaV6GXEn7A3lQ/M6L9AnXEUk3sdJ9le8u1Hl6d4T+PLaRFeg4l2/+VtyG7QOVN6gWNMgKmFE8z/GXMbr1rj4SEh+wt+3p3Jo+MOfNgTXOgNW8jT9vgtscLHhMkrIholrr0Z7HuflzxDKEJ2jxS2k1C6kNKdbb8aEU6RaZtzTZ4w4Cm4lPDvEoY1RIoeNwp8MOf/wFNtUJSa4RX+Os X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1682; 25:aj4lwh+evXEPIKuI09IrYcpCHEq8gPVNFiMKh0vgEAcqCSs5S09hBZKU2PBjTipZD17cM7Owd9FyDd/4vX8qGDbIENUt3kbxY2v88UDntShC3827Ef7fWzg9lAo7l8SZwSUft+lLnMSfYa+zk+vPV61yL0+OPG/LmoJ65o+qH1KLjSftMBjZbp2fEk5YVzBTBpn+LUZp0IUrp+GioDesa00TBOeRzQFNFMNY1+Se0C17AG2xa5UgS75wd/iiDJoiXHefGCmvnmnlLxdzukaXIZBPsb6OUROeB3bRin7kG4cFxZ8nRUTBQouqdRNyz61+Wf3TjrrUxRt38Ei7P/nc2h9if742gT15VzdDqhXQYDGS7nN9IrF6TTetYzLocqfdjqvF51oTCSQBEh/DO5Rp9K4Tj9A3owGB/Ih2LAGVqNLRReuGgau3J8EUhJC4Ib7/mm5PY8qVOm2aHp1I5qE6gmw15JUQK+FoyqjnFy0Kt/c=; 31:y7k4UjMnykoR2M1P6vhZA36aAQ1usCr8i78URSSXnWmq30qZ1500TTkFeSVdxuoFdx+at8lunGi2b3EYO+sBQFh5zH2S2xhP2D0fdGl3Cut/tnyDlqEjqTxJzL6ZrF4Q95s5HobYlsUWolSHZgcQL9LwWmn/KtEwBbobnVFNW84sRDkyx9Wtjpk7GaKkvtTuWkUy8t9Ma+4cKudHjAcAKiz3t0epJINF28JJu8p5vllcnNJTGn+1g0dcHEwFSbuRqEhRRElLc6RBggEFudUymg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1682; 20:+nKrebj/WsbZk8aWzW+bEEK4F9FfWDFfEXCcBX8hdNb1hf5tw7ekSOKIvP/GeksefPMMj9VJZaZf7DEoP858joqYZHwivvUafpS4sropNBcNawzeFApOwG9o1ZPCo07iKOM/O+WImuxAyeh6chMoApSCs5Zbo52x3U5r+RHbmSNzZ7IgKFdoAV4d+67s7z3SE1plr6NejDW0iX5mInJeTiIWDjKIcQMkc8dM29MPTvve6j3HycGoCeChkfDpv7A0I1x+2K3oHVoX8OowBrEN12fo28QK8xhGyJxYDyNNDRCzBmeeOmLaQqQUIWA1K0W5d8rBCnv8CMhtbhm2WvETQhDz7NWyVyHhxOOkKNQJiIj7xgXQsn18vQ0sVxRLJICJ6VyCe6nzxLimmRcDj3/GMch4zNdnlx/kn3aX7jSztx/p0vTDCzB2Qzc2VP+u1ZLBGgcPlWEMBPgzyyez+1RX9bAsgII3dn+4rWoYPGe+eTC0fvxwJ1emfhx4naA1Kh/S X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:BLUPR0401MB1682; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0401MB1682; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1682; 4:s3e13Q6c3I+1Av4J/qJNGxbw9FlBRIjd4xIMYIpsHc3mdP5CUCKce/equFSWwlBsYzH3/8TfNx/bbuv8HHx7P/WE+gFlbB71TPrFdAitBtyCbE4QZ618Jas0/Fwl/mAR1oMwes9b2mejfj9g5lK3rqSKWDeyl89XB4qqD7RY64vMjDYFqLMpp7p0yBokhjFrViUuovlZ9qDaiSyBYSpOTYLoZ2EB+L1BG+PWOvUYwSyFaxu0PKGoVfdZmlQKT/cx6DA0vJzpOKJPT2LIzOGGxjMtkn4FflwYd30S2r02ZrMhkgEuRO2iBLJq8x+PhbOoYSjKtJ72mycS5daYyjpADo163ycLGv8ZbQ5r12zA+Po38SWZ9lsLp93OGGSm1VLbOBKlGjbScRX+DHNCOl1VJveCZTMj5VXhM1Tkp6Mmi+vAT1iHX0elNTyz+JUkp9aFyMQ7cYlTwwzMyDQ/pzGyKeyhOCbSsaJc2eWjJX/ddHLnAYmtbqj+P0FpkliwWNXv790T1GpbrIdOhpyTmT0wL+Q0r3zufqfcxMuUmNS9ckS+eEEJ9smAo8xdM5yNZyr48+n96QHPAI9EUQL9dhMbN7zW4Fbsjue7HqFHhNcqud/sx2ZlL8gtiJs6/qDOd7UP3hcIjFO7JH+hOoeQ1Y4IlyS+Wv8hMHQ/+CnapF2bALdV/NMiF9saO4de5pKfXG+0nDyuhboX0QHY7o7Gxkgy/x9FyldJDJ7yqWvfWDMyJjtkSR3IkT3Jrwj7bT3K2wNDAwwGsMUqr9ofyBUu6somHaFlyYdfmiWzPFEVOBwNCuccjKwsEAoqnVNx508jCDilsHbG3qlyMhtSwcZQhZvPYB5IoBlXHq50e4tdYncu7K4wO8+Zlzxys8+iH546C5eCEoqmDde380ZrUN55LMashfEw5cd7FMHSxkHsjUv5 ye8= X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0401MB1682; 23:Oz+r430ni7ieUX71Dk6oyHQ09CtIviGaYNImHFe?= =?us-ascii?Q?gR6TakcuVFX8DAxyI0APKCER0s5C4fwdfff7XC42HgZRHyHy8Tx7X6d7NRHU?= =?us-ascii?Q?z+3DOlur8a9+iyz1xaX3b+0uHgBU89F7tK7m58S3W/rYLXjhQML1xzb3Qkjo?= =?us-ascii?Q?JhvyuaGFhgd4F2t051aDKxfA3OxxJiwFNZFgifw4isOjAmkbR4407EEzV1Bw?= =?us-ascii?Q?I5ks4KdCKXmS77KsAtzUEln3fq1aE3lTZj1MSfngnTtO4wfzWUmT9+F2oW3Q?= =?us-ascii?Q?l4eb1MdKJ2nZw0vohXSZORFL8ORDVtVGwruayHo9tmYWrZ2Tb78DZk/xbH2B?= =?us-ascii?Q?65nRH2Gx2/0yYlL2leXAxwfe1k+HSMPpdqQyGV4/moBSQC/30HG8BXwPJPAs?= =?us-ascii?Q?dLG9WG9ekpU7rg6w9RPiAF6QjkN0J+xCLDoYFHfmoqt7umPNrs365f89xwRD?= =?us-ascii?Q?f5rPMaSGGUmtZ8S01vPgUdWwtd+WB0TWe3lpdTPOLEKQHY3aAXzaRC70o7BP?= =?us-ascii?Q?ZYLOcgr3LROECHZb0Uqr3hdGJuWeGxYfZdHjPiALnxZNX2V82lKj6RIqza6P?= =?us-ascii?Q?JS2VGucqZcsIkC3uQF9gSeZhNzsXwf5EpevRJtL36/nLOnxuvfsiYBmhuwUL?= =?us-ascii?Q?vd/M2rzhss3Z29mZAPQHa4qRM3N1ih7Qn781uAD31DG5wYhRdh2d2n7u1yna?= =?us-ascii?Q?S8b1WCgWAV3ulXreAMP09K52x4K2A/Ul18dkvE7EFiv+G8xwyfxJwqhHoKW8?= =?us-ascii?Q?aRHCfTd/xjJPYUgFM7xgpWk0NnE6L502OGA7p4dZgz2Vd78aJs6hYNqgsEEc?= =?us-ascii?Q?8WFZca3n75HG5RmkcSW6/m2lIPdhe4xDdgDqmyjHhY26CAiAMZhN+7pNNwb6?= =?us-ascii?Q?G2eZ4cfAKmOWdeDQVA+/lYkxkdmUv3i/bDgL/27wE9AD4Ipvv5r5HkjRBNyC?= =?us-ascii?Q?6vpbpiXUwNsFxoy8FCJQDKYgbSubPO20xThyZH3FNsoNe3KG79Onp9bW4gVL?= =?us-ascii?Q?BqiLBGWBUq+U/Uz2NOrpvAt+Fk8bxTXwTmlKUrQHP/mxZjtRr2/rPrKCEo5o?= =?us-ascii?Q?b55se/mzo8oqXhWAGMJWEaCXmXz3s?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1682; 6:K5jwDbvW+XsvankVoNFgFzoubRTL05o3i2EJeasyXlsrWC63ywhLn38Z9tOWAlgaQhQ7QkU3gVleCFbHBqZSnRkC1wiF2OohxEIO1I0qD4+Gu5KTfKE7VtaV1JCeimcGqoOe57lFEyQ1RtZA6YphqwFw4VpH6VYW+mkENViff75KsZ4YiA8lq42kMMAjQVDxu8LK4jP0iNMOZsMa+IHqqSyW23WZOxnhqNor2twR6xn2lqM1ExHuouXRMKE2g0pkKxafPc4gS1PSv5P4zn3OOYrn8CDKKRegVXKsakAK+SgjD3RmD3qdUP3qpj8kLeTa93gSxM8zuspS+j/pvSLXf0853NhpQOWC0UeKzFf04do6ll9wnWUWRUH5yheTjRmgT0ROm1o4QAQ75nSh8wyl7qzFKJHYMy1HkdWJiSyxtRYD+y3ybnYXqHgagI0hIUUNj4B/4unAdMVK1fKH1PlVj4F84LIrivofgTD+LdbQs4WGdd1lEJBUoS5K773o0v41ci1MFxSg1e42e4wjuP+sbxnoIcqwQ9Brs8qCGejPj14=; 5:2HmOnKawwB4WveaxRWjzawJkQokkjD0402tKJVMNUyJEOrJFoWKov4/lafOGYQCN0QiS9zP+uTRzS2otUujh9xo96ue8YPikMGWLv/5P/PtSmBj+qzuq56+mWoV1UfKLWBBf5wrGWNKUJvxMQb39LQ==; 24:MJv53yaZLR0Pb6lfAF9zuXMaxm2OU+78BzmDVCJJ5wtlrIw313E32BF1U0BLXeKRxynSrU/5EEI/p4TdtGkitY6ZnuhadnuAAmAEqDEIYt4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0401MB1682; 7:3LeUDJqddxE0vCYU6w6J1lOKKyXXknkDbgOfSIAXE+qz+6FjZQ1tkB6Xjmhw//nSu+yr9XGZOVt4LG5gAZl8HDwFf8CcRDpNV8ssaOSAVxx2WZtbc+YHyg+YRHGN+mSVyuuXwSlTO3T+Nm19XBLR8p1w/NKophY/YmiGjMhZeTOqRN/z4uwVNtMMl1FP/u9vnYjeLzjr0BAiAWXGkNq77YZ+VmGGUHmB9sXmgdUr0nJ4i8hZ6XyAmLWrXshh7NsF1zapn5JZYbINYy+k5mZgO3XNp/lOeU1ZwFg5aCrFH1cs70SyneZlGnz8bHGqh/QwgP7bfc7QBfvfO3hXvDctUg==; 20:KsLaMUVimZElAosEDbKEKOTPzjMOZwkuQ+KYvf9GvwVdJbSZTqH/2YWO7yrEt6Iuxlr8wtSKl1ypVmDUxYtXTDCc4wnGKUg796DVRGWtQEvcmsAAEoLQE4cAkxMKwQaLaXdp0uunC3aS1HdpVkrPMVsDfw1/PNvlBf340XSz1G0= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 22:52:53.7394 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0401MB1682 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Instead of declaring the second argument of blk_*_get_request() as int and passing it to functions that expect an unsigned int, declare that second argument as unsigned int. Also because of consistency, rename that second argument from 'rw' into 'op'. This patch does not change any functionality. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Cc: Hannes Reinecke Cc: Omar Sandoval Cc: Ming Lei --- block/blk-core.c | 13 +++++++------ block/blk-mq.c | 10 +++++----- include/linux/blk-mq.h | 6 +++--- include/linux/blkdev.h | 3 ++- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index a7421b772d0e..3bc431a77309 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1283,8 +1283,8 @@ static struct request *get_request(struct request_queue *q, unsigned int op, goto retry; } -static struct request *blk_old_get_request(struct request_queue *q, int rw, - gfp_t gfp_mask) +static struct request *blk_old_get_request(struct request_queue *q, + unsigned int op, gfp_t gfp_mask) { struct request *rq; @@ -1292,7 +1292,7 @@ static struct request *blk_old_get_request(struct request_queue *q, int rw, create_io_context(gfp_mask, q->node); spin_lock_irq(q->queue_lock); - rq = get_request(q, rw, NULL, gfp_mask); + rq = get_request(q, op, NULL, gfp_mask); if (IS_ERR(rq)) { spin_unlock_irq(q->queue_lock); return rq; @@ -1305,14 +1305,15 @@ static struct request *blk_old_get_request(struct request_queue *q, int rw, return rq; } -struct request *blk_get_request(struct request_queue *q, int rw, gfp_t gfp_mask) +struct request *blk_get_request(struct request_queue *q, unsigned int op, + gfp_t gfp_mask) { if (q->mq_ops) - return blk_mq_alloc_request(q, rw, + return blk_mq_alloc_request(q, op, (gfp_mask & __GFP_DIRECT_RECLAIM) ? 0 : BLK_MQ_REQ_NOWAIT); else - return blk_old_get_request(q, rw, gfp_mask); + return blk_old_get_request(q, op, gfp_mask); } EXPORT_SYMBOL(blk_get_request); diff --git a/block/blk-mq.c b/block/blk-mq.c index e068a26173fc..9aa1754e938b 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -278,7 +278,7 @@ struct request *__blk_mq_alloc_request(struct blk_mq_alloc_data *data, } EXPORT_SYMBOL_GPL(__blk_mq_alloc_request); -struct request *blk_mq_alloc_request(struct request_queue *q, int rw, +struct request *blk_mq_alloc_request(struct request_queue *q, unsigned int op, unsigned int flags) { struct blk_mq_alloc_data alloc_data = { .flags = flags }; @@ -289,7 +289,7 @@ struct request *blk_mq_alloc_request(struct request_queue *q, int rw, if (ret) return ERR_PTR(ret); - rq = blk_mq_sched_get_request(q, NULL, rw, &alloc_data); + rq = blk_mq_sched_get_request(q, NULL, op, &alloc_data); blk_mq_put_ctx(alloc_data.ctx); blk_queue_exit(q); @@ -304,8 +304,8 @@ struct request *blk_mq_alloc_request(struct request_queue *q, int rw, } EXPORT_SYMBOL(blk_mq_alloc_request); -struct request *blk_mq_alloc_request_hctx(struct request_queue *q, int rw, - unsigned int flags, unsigned int hctx_idx) +struct request *blk_mq_alloc_request_hctx(struct request_queue *q, + unsigned int op, unsigned int flags, unsigned int hctx_idx) { struct blk_mq_alloc_data alloc_data = { .flags = flags }; struct request *rq; @@ -340,7 +340,7 @@ struct request *blk_mq_alloc_request_hctx(struct request_queue *q, int rw, cpu = cpumask_first(alloc_data.hctx->cpumask); alloc_data.ctx = __blk_mq_get_ctx(q, cpu); - rq = blk_mq_sched_get_request(q, NULL, rw, &alloc_data); + rq = blk_mq_sched_get_request(q, NULL, op, &alloc_data); blk_queue_exit(q); diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index c534ec64e214..a4759fd34e7e 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -205,10 +205,10 @@ enum { BLK_MQ_REQ_INTERNAL = (1 << 2), /* allocate internal/sched tag */ }; -struct request *blk_mq_alloc_request(struct request_queue *q, int rw, +struct request *blk_mq_alloc_request(struct request_queue *q, unsigned int op, unsigned int flags); -struct request *blk_mq_alloc_request_hctx(struct request_queue *q, int op, - unsigned int flags, unsigned int hctx_idx); +struct request *blk_mq_alloc_request_hctx(struct request_queue *q, + unsigned int op, unsigned int flags, unsigned int hctx_idx); struct request *blk_mq_tag_to_rq(struct blk_mq_tags *tags, unsigned int tag); enum { diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 019f18c65098..6c4235018b49 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -932,7 +932,8 @@ extern void blk_rq_init(struct request_queue *q, struct request *rq); extern void blk_init_request_from_bio(struct request *req, struct bio *bio); extern void blk_put_request(struct request *); extern void __blk_put_request(struct request_queue *, struct request *); -extern struct request *blk_get_request(struct request_queue *, int, gfp_t); +extern struct request *blk_get_request(struct request_queue *, unsigned int op, + gfp_t gfp_mask); extern void blk_requeue_request(struct request_queue *, struct request *); extern int blk_lld_busy(struct request_queue *q); extern int blk_rq_prep_clone(struct request *rq, struct request *rq_src,