From patchwork Thu May 18 09:29:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 9733009 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 A27D06022E for ; Thu, 18 May 2017 09:30:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8DE8328802 for ; Thu, 18 May 2017 09:30:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8345428458; Thu, 18 May 2017 09:30:23 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 360F828823 for ; Thu, 18 May 2017 09:30:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755254AbdERJaW (ORCPT ); Thu, 18 May 2017 05:30:22 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:36484 "EHLO mail-wr0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754929AbdERJaU (ORCPT ); Thu, 18 May 2017 05:30:20 -0400 Received: by mail-wr0-f175.google.com with SMTP id l50so29199367wrc.3 for ; Thu, 18 May 2017 02:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=04xPwC6CCgFAYb80CddG+F+yddsafZqB1vLfTf0QAHs=; b=aQxXgQJF2iGvnrzyZA+ThzahBwne5sRqoeb92XDPAC/K2ssW8xUj/IP0u4dn5GvXNI CSHzoYHJXxhhIa2jmv+Agq7zgQxxpa/mxmQt9UjWMDXvE7VREHTvRUsYk1z6MEBnqLLr jhgKPfjyBBx+kR2MoP/Z7baWkXdci759d5o2U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=04xPwC6CCgFAYb80CddG+F+yddsafZqB1vLfTf0QAHs=; b=cInefEdcHt1SyYmSSq0i57pocDxJMeN1fXTyqW3xYon+E5InQIxyAkGMDUtn7FiLyi zYw0G4ffpD/K224iv9gOn90+TwpV2sDGLL+PG5s7kncPPzh2djSZbfUzZpmnotpLQ/U4 VDu12fLiJ3kpewNvl0Z9BPMSF6sN4rG7biBJ2L3YZyyfcRVD1hPXrWEkjfefnYKtjDD5 6KjqvmugO9kVUry46koaLmv3ohIVydw39xI7Zs04gvCWW144duq1XHvbKTFJcbK3d8AP STlOK8ov18CF4rQHnHR078SbjKi5cLooHRydiTub7wO3qEEzd+RzddC7n0jFdJqrX3MO XEMA== X-Gm-Message-State: AODbwcBukJ+qWCxra586OE4+FxaeGn3p0iPiHER8YoMHP3gAjk0h36Ke e/ydpnH8JK+BecHQ X-Received: by 10.46.7.1 with SMTP id 1mr775154ljh.27.1495099819342; Thu, 18 May 2017 02:30:19 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id u24sm829895ljd.34.2017.05.18.02.30.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 02:30:17 -0700 (PDT) From: Linus Walleij To: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter Cc: linux-block@vger.kernel.org, Jens Axboe , Christoph Hellwig , Arnd Bergmann , Bartlomiej Zolnierkiewicz , Paolo Valente , Linus Walleij Subject: [PATCH 6/6 v2] mmc: queue: delete mmc_req_is_special() Date: Thu, 18 May 2017 11:29:36 +0200 Message-Id: <20170518092936.9277-6-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170518092936.9277-1-linus.walleij@linaro.org> References: <20170518092936.9277-1-linus.walleij@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP commit cdf8a6fb48882651049e468e6b16956fb83db86c "mmc: block: Introduce queue semantics" deleted the last user of mmc_req_is_special() and it was a horrible hack to classify requests as "special" or "not special" to begin with, so delete the helper. Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - No changes, just include this patch with in my series. --- drivers/mmc/core/queue.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/mmc/core/queue.h b/drivers/mmc/core/queue.h index 8c76e7118c95..dfe481a8b5ed 100644 --- a/drivers/mmc/core/queue.h +++ b/drivers/mmc/core/queue.h @@ -12,14 +12,6 @@ static inline struct mmc_queue_req *req_to_mmc_queue_req(struct request *rq) return blk_mq_rq_to_pdu(rq); } -static inline bool mmc_req_is_special(struct request *req) -{ - return req && - (req_op(req) == REQ_OP_FLUSH || - req_op(req) == REQ_OP_DISCARD || - req_op(req) == REQ_OP_SECURE_ERASE); -} - struct task_struct; struct mmc_blk_data; struct mmc_blk_ioc_data;