From patchwork Mon Feb 27 17:47:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 9593655 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 E15A460471 for ; Mon, 27 Feb 2017 17:50:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D70AE2835B for ; Mon, 27 Feb 2017 17:50:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC29E28471; Mon, 27 Feb 2017 17:50:07 +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.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, 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 AEBA62840E for ; Mon, 27 Feb 2017 17:50:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751470AbdB0Rtx (ORCPT ); Mon, 27 Feb 2017 12:49:53 -0500 Received: from mail-pg0-f41.google.com ([74.125.83.41]:34249 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751338AbdB0Rtu (ORCPT ); Mon, 27 Feb 2017 12:49:50 -0500 Received: by mail-pg0-f41.google.com with SMTP id p5so23387873pga.1 for ; Mon, 27 Feb 2017 09:48:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=+0484qoKNEFeQgeCHaM5gdAqUw2QymQWYhEBbi1ZWe0=; b=GrWmPkTdmDaNB9Cnk9jn6znyej0rH5EhotOUM+Clik/hcwwGjr1EK3v/crywQbOIRW 15U9b/wXF4ZJ0+pjqDdWtXYzj1di3qsYh3Ve3KyMK3wd/0AmgdHjRShTJOYuuQhRJSRL nYfyT3If6MYnzdOrsykuXHaKt5YTNBlywvaxQaBE3l/c9Cz4/VfHEpKT95SUrXlwBq5E 8tDODKMQsxAvNyxxHswLah8KOdsSGljxdib/erVNx5jrwW/WFSkM/jJ4E/gcXSaeKzNc cRo1oq/PwmnASEKui21EFPH7JqRN7HpvnQm/pRfAKkNhvCqKA7pWoerpe71rVrJEK0DS x9Bg== 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:in-reply-to:references; bh=+0484qoKNEFeQgeCHaM5gdAqUw2QymQWYhEBbi1ZWe0=; b=c7oV8IsufY0Q2Qtqg47/kNekrso4+kyjX4MpMesBgF+C6A394DOAFyVu4tjdnkW875 8FApbUTcDZb7lpEJKZPS8ZcyiTJNEdXavDcAldq3uypMEbFBJzOc8fT+rmg1xHTTGCtU cgPcAglFq2MwNJzdPqhbSVgQ5iHx/1p3sThX6eRtnpWfNB+xnrbD1vMCDIcHMbOKMhj/ EaVUbe6Sz9T3Jjp99EfINbQYEysL0PSxbgIJuyZDyN+ZzM7TKEJpKffwdt+UMhi//R5z SRbHSDyKsEEkxDlMWXWUo0U+WlcwKDIGCTPqgQeYhpEBtSDDEGUh+OZImS0bjBAAyEjv 2QNw== X-Gm-Message-State: AMke39lJM5tZDGuvwXa5JzGZ7Nj6szQXhDJpwtCh16bCb6IFITUnVaTRlVuAPgLfILVKyr4p X-Received: by 10.84.192.107 with SMTP id b98mr26043429pld.160.1488217723354; Mon, 27 Feb 2017 09:48:43 -0800 (PST) Received: from vader.thefacebook.com ([2620:10d:c090:180::93d5]) by smtp.gmail.com with ESMTPSA id o24sm31893041pfj.78.2017.02.27.09.48.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Feb 2017 09:48:42 -0800 (PST) From: Omar Sandoval To: Jens Axboe , Sagi Grimberg , linux-block@vger.kernel.org Cc: kernel-team@fb.com Subject: [PATCH 2/3] blk-mq: kill blk_mq_set_alloc_data() Date: Mon, 27 Feb 2017 09:47:54 -0800 Message-Id: <87aa35aa12f2edd4a9c56c382bf85ee580edf156.1488217516.git.osandov@fb.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: References: In-Reply-To: References: 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 From: Omar Sandoval Nothing is using it anymore. Signed-off-by: Omar Sandoval --- block/blk-mq.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/block/blk-mq.h b/block/blk-mq.h index 24b2256186f3..088ced003c13 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -146,16 +146,6 @@ struct blk_mq_alloc_data { struct blk_mq_hw_ctx *hctx; }; -static inline void blk_mq_set_alloc_data(struct blk_mq_alloc_data *data, - struct request_queue *q, unsigned int flags, - struct blk_mq_ctx *ctx, struct blk_mq_hw_ctx *hctx) -{ - data->q = q; - data->flags = flags; - data->ctx = ctx; - data->hctx = hctx; -} - static inline struct blk_mq_tags *blk_mq_tags_from_data(struct blk_mq_alloc_data *data) { if (data->flags & BLK_MQ_REQ_INTERNAL)