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: 9733007 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 5FDEF6020B 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 3DAA5287B7 for ; Thu, 18 May 2017 09:30:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B6BA28806; 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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 BD3FF2883B for ; Thu, 18 May 2017 09:30:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755241AbdERJaW (ORCPT ); Thu, 18 May 2017 05:30:22 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:34691 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754903AbdERJaU (ORCPT ); Thu, 18 May 2017 05:30:20 -0400 Received: by mail-wr0-f170.google.com with SMTP id l9so29222274wre.1 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=WAJpwu8kp4Jy7na+JjyxsV4lKhBb/swnO5WlulqVJEOTu1K3a9iwgeItBxpZHL3/l8 +iU+r6gCORDBaV/ZENgAEn1WnqWDmZI6HG80XYn62hWS4usNSQ8K4tml0WaZfz4bNkCb U1kgIhQ0KyNUkz4l1qxgM2QGkk1siDaM3khWZbpeoZPwnBiUIJF2rycyh4lvE5HkLVyI +1ZF0WLCxy4GyWpjnj+Ern/jjoucrVUOu1CGq7D5mCJCPqo8792joqzd/FKFHol9Ue56 OoFT711NweZGqHNY7/yHKQFrte03KBrRtUhv1YyK5rJP1h3CBi/e+f2bRK7CcR5gDrrP KO3A== X-Gm-Message-State: AODbwcBjJEkD2OT4L1z0UH/CVL+y5kWvno7gswIq9r/2usuDkX+5oait BBK6LoKhQryzdAFg 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-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@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;