From patchwork Thu Jan 17 16:15:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 10768491 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1A48A13BF for ; Thu, 17 Jan 2019 16:15:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0ACFB30189 for ; Thu, 17 Jan 2019 16:15:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F32DD30322; Thu, 17 Jan 2019 16:15:49 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 E3E253030D for ; Thu, 17 Jan 2019 16:15:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728934AbfAQQPr (ORCPT ); Thu, 17 Jan 2019 11:15:47 -0500 Received: from mx2.suse.de ([195.135.220.15]:48426 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728947AbfAQQPn (ORCPT ); Thu, 17 Jan 2019 11:15:43 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 65BB7ACB1 for ; Thu, 17 Jan 2019 16:15:42 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id D1EF0DA83D; Thu, 17 Jan 2019 17:15:12 +0100 (CET) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH] btrfs: remove unused workqueue helpers Date: Thu, 17 Jan 2019 17:15:12 +0100 Message-Id: <20190117161512.24101-1-dsterba@suse.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The _owner helpers havent' been used since its introduction in cb001095ca705dcd95 ("btrfs: plumb fs_info into btrfs_work"), there are no external users of the private wq::fs_info pointer. Signed-off-by: David Sterba Reviewed-by: Nikolay Borisov --- fs/btrfs/async-thread.c | 12 ------------ fs/btrfs/async-thread.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/fs/btrfs/async-thread.c b/fs/btrfs/async-thread.c index d522494698fa..44a7942f0457 100644 --- a/fs/btrfs/async-thread.c +++ b/fs/btrfs/async-thread.c @@ -61,18 +61,6 @@ noinline_for_stack void btrfs_##name(struct work_struct *arg) \ normal_work_helper(work); \ } -struct btrfs_fs_info * -btrfs_workqueue_owner(const struct __btrfs_workqueue *wq) -{ - return wq->fs_info; -} - -struct btrfs_fs_info * -btrfs_work_owner(const struct btrfs_work *work) -{ - return work->wq->fs_info; -} - bool btrfs_workqueue_normal_congested(const struct btrfs_workqueue *wq) { /* diff --git a/fs/btrfs/async-thread.h b/fs/btrfs/async-thread.h index 7861c9feba5f..3aceb2e6373a 100644 --- a/fs/btrfs/async-thread.h +++ b/fs/btrfs/async-thread.h @@ -70,8 +70,6 @@ void btrfs_queue_work(struct btrfs_workqueue *wq, void btrfs_destroy_workqueue(struct btrfs_workqueue *wq); void btrfs_workqueue_set_max(struct btrfs_workqueue *wq, int max); void btrfs_set_work_high_priority(struct btrfs_work *work); -struct btrfs_fs_info *btrfs_work_owner(const struct btrfs_work *work); -struct btrfs_fs_info *btrfs_workqueue_owner(const struct __btrfs_workqueue *wq); bool btrfs_workqueue_normal_congested(const struct btrfs_workqueue *wq); #endif