From patchwork Thu Jan 14 22:41:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tahsin Erdogan X-Patchwork-Id: 8036401 Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B9E83BEEE5 for ; Thu, 14 Jan 2016 22:42:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02B79204AE for ; Thu, 14 Jan 2016 22:42:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C6D6204D9 for ; Thu, 14 Jan 2016 22:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754850AbcANWm4 (ORCPT ); Thu, 14 Jan 2016 17:42:56 -0500 Received: from mail-pf0-f182.google.com ([209.85.192.182]:36402 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753816AbcANWmz (ORCPT ); Thu, 14 Jan 2016 17:42:55 -0500 Received: by mail-pf0-f182.google.com with SMTP id n128so106719140pfn.3 for ; Thu, 14 Jan 2016 14:42:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=uiePtdsoh/Q8ues4WFQqjRBLoazZETG7VMhSe/cP+ak=; b=X9XhrQQ8YmhMST06NPrQL3whAGqrDrWYjT4k7g9JkFQA1+nRGKDc3O/XfDJFDvk37E Pj3Jm4wUiMxYYoTF/e30G68MOrtsmZYcqOs7CkSTSkI+ZUvpEQ5TocAFUtgebN4b0aFB kdPnrMr6SII3JIECEXc2LPnqYl+TL+s7DCMawkK6xjxzF9oHu38AA/EPKEc+ZzwD0jpu DK45/CZYkb/aLTBu5SO307jHV02BW/yuB7usQghbJEBI4mixwMX28ANlt9IFSpGjaLus yL+izgRi6Z3qgf7igr2VsTnmH4dhoLBaiyjnkxYun5Mk58jlK+piM/8nK01g2fdzvNyt OPZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uiePtdsoh/Q8ues4WFQqjRBLoazZETG7VMhSe/cP+ak=; b=Q/rnY8H0Xnsu9KHhJjpvtalknePlR1GVQdW62Tv3HYEk/V02rzEB/6/HdmMxQTNHGt 26m5rDl4iawUNDD7v50yf7QH1SKP0J6/MXBHyXZxxAuxYXY/3Oqk149PNxFVb9pK2mYA hDwpPH75Bpb/xUS2FoodzWBftP5zl1U4KgSqsxXhFHKOIWgcvuNsXiXo6LEh9YAgI1zd Qc1FtnaQGqpevGikIeeGlITjAuhSSO/7RyrGdyyQPzCh5X0a8Cm8AnCq6t27kEJP0Irt yauP/IMShQeg/WYHt4YVnNTZFxP+GfuN68iMFOLEarGSqZIV2FH1W3Ahts640b8jP2Ft bSCA== X-Gm-Message-State: ALoCoQmPecYUdUbFqrGOsLN8piZqy+w87Y20SXqFAe+LRgcEZFreG8FyIaJb36DolTEE1IoJEKfzVgLGV21Uv3GMtNVp5cro0g== X-Received: by 10.98.64.142 with SMTP id f14mr10012099pfd.83.1452811375397; Thu, 14 Jan 2016 14:42:55 -0800 (PST) Received: from tahsin1.mtv.corp.google.com ([172.17.128.201]) by smtp.gmail.com with ESMTPSA id wa17sm11473371pac.38.2016.01.14.14.42.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 14 Jan 2016 14:42:54 -0800 (PST) From: Tahsin Erdogan To: Jens Axboe , Aaron Carroll , linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Tahsin Erdogan Subject: [PATCH] deadline: remove unused struct member Date: Thu, 14 Jan 2016 14:41:32 -0800 Message-Id: <1452811292-8568-1-git-send-email-tahsin@google.com> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP commit 63de428b139d3d31d86ebe25ae97b33f6540fb7e ("deadline-iosched: allow non-sequential batching") removed last use of last_sector. Signed-off-by: Tahsin Erdogan Reviewed-by: Jeff Moyer --- block/deadline-iosched.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/block/deadline-iosched.c b/block/deadline-iosched.c index a753df2..d0dd788 100644 --- a/block/deadline-iosched.c +++ b/block/deadline-iosched.c @@ -39,7 +39,6 @@ struct deadline_data { */ struct request *next_rq[2]; unsigned int batching; /* number of sequential requests made */ - sector_t last_sector; /* head position */ unsigned int starved; /* times reads have starved writes */ /* @@ -210,8 +209,6 @@ deadline_move_request(struct deadline_data *dd, struct request *rq) dd->next_rq[WRITE] = NULL; dd->next_rq[data_dir] = deadline_latter_request(rq); - dd->last_sector = rq_end_sector(rq); - /* * take it off the sort and fifo list, move * to dispatch queue